Crate massa_pos_exports

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
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ยง

CycleInfo
State of a cycle for all threads
CycleInfoDeserializer
Deserializer for CycleInfo
CycleInfoSerializer
Serializer for CycleInfo
DeferredCreditDeserializer
Inner deserializer for one slotโ€™s deferred credits (Address -> Amount map) within DeferredCredits
DeferredCreditSerializer
Inner serializer for one slotโ€™s deferred credits (Address -> Amount map) within DeferredCredits
DeferredCredits
Structure containing all the PoS deferred credits information
PoSChanges
Recap of all PoS changes
PoSConfig
proof-of-stake final state configuration
PoSFinalState
Final state of PoS
ProductionStats
Block production statistics
ProductionStatsDeserializer
Deserializer for ProductionStats
ProductionStatsSerializer
Serializer for ProductionStats
RollsDeserializer
Deserializer for rolls
Selection
Selections of endorsements and producer
SelectorConfig
Configuration of selector thread

Enumsยง

PosError
Proof-of-Stake error

Traitsยง

SelectorController
interface that communicates with the selector worker thread
SelectorManager
Selector manager used to stop the selector thread

Type Aliasesยง

PosResult
Proof-of-Stake result