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 ๐
- 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 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