Crate massa_pos_exports
source ·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 🔒
- This module exports generic traits representing interfaces for interacting with the PoS selector worker.
- error 🔒
- settings 🔒
Macros
- Complete key formatting macro
- Deferred credits key formatting macro
- Final state hash snapshot key formatting macro
- Production stats fail key formatting macro
- Production stats prefix macro
- Production stats success key formatting macro
- Rng seed key formatting macro
- Roll count key formatting macro
- Roll count key prefix macro
Structs
- Deserializer for a single credit
- Serializer for
Credits
- Deserializer for cycle history, useful when restarting from a snapshot
- Serializer for cycle history
- State of a cycle for all threads
- Deserializer for
CycleInfo
- Serializer for
CycleInfo
- Structure containing all the PoS deferred credits information
- Deserializer for
DeferredCredits
- Serializer for
DeferredCredits
- Recap of all PoS changes
PoSChanges
DeserializerPoSChanges
Serializer- proof-of-stake final state configuration
- Final state of PoS
- Block production statistics
- Deserializer for
ProductionStats
- Serializer for
ProductionStats
- Deserializer for rolls
- Selections of endorsements and producer
- Configuration of selector thread
Enums
- Proof-of-Stake error
Traits
- interface that communicates with the selector worker thread
- Selector manager used to stop the selector thread
Type Aliases
- Proof-of-Stake result