Expand description
Definition and exports of the PoS types and errors.
Define also the Selector worker that compute in background the draws for the future cycles
Modulesยง
- config ๐
- controller_
traits ๐ - This module exports generic traits representing interfaces for interacting with the PoS selector worker.
- cycle_
info ๐ - deferred_
credits ๐ - error ๐
- pos_
changes ๐ - pos_
final_ ๐state - settings ๐
Macrosยง
- complete_
key - Complete key formatting macro
- deferred_
credits_ key - Deferred credits key formatting macro
- final_
state_ hash_ snapshot_ key - Final state hash snapshot key formatting macro
- prod_
stats_ fail_ key - Production stats fail key formatting macro
- prod_
stats_ prefix - Production stats prefix macro
- prod_
stats_ success_ key - Production stats success key formatting macro
- rng_
seed_ key - Rng seed key formatting macro
- roll_
count_ key - Roll count key formatting macro
- roll_
count_ prefix - Roll count key prefix macro
Structsยง
- Cycle
Info - State of a cycle for all threads
- Cycle
Info Deserializer - Deserializer for
CycleInfo - Cycle
Info Serializer - Serializer for
CycleInfo - Deferred
Credit Deserializer - Inner deserializer for one slotโs deferred credits (Address -> Amount map) within
DeferredCredits - Deferred
Credit Serializer - Inner serializer for one slotโs deferred credits (Address -> Amount map) within
DeferredCredits - Deferred
Credits - Structure containing all the PoS deferred credits information
- PoSChanges
- Recap of all PoS changes
- PoSConfig
- proof-of-stake final state configuration
- PoSFinal
State - Final state of PoS
- Production
Stats - Block production statistics
- Production
Stats Deserializer - Deserializer for
ProductionStats - Production
Stats Serializer - Serializer for
ProductionStats - Rolls
Deserializer - Deserializer for rolls
- Selection
- Selections of endorsements and producer
- Selector
Config - Configuration of selector thread
Enumsยง
- PosError
- Proof-of-Stake error
Traitsยง
- Selector
Controller - interface that communicates with the selector worker thread
- Selector
Manager - Selector manager used to stop the selector thread
Type Aliasesยง
- PosResult
- Proof-of-Stake result