Crate sc_consensus_epochs
source · [−]Expand description
Generic utilities for epoch-based consensus engines.
Modules
Migration types for epoch changes.
Structs
Tree of all epoch changes across all seen forks. Data stored in tree is the hash and block number of the block signaling the epoch change, and the epoch that was signalled at that block.
Header of epoch data, consisting of start and end slot.
Epoch identifier.
Wrapper to get around unconstrained type errors when implementing
IsDescendentOfBuilder
for header backends.
A fresh, incremented epoch to import into the underlying fork-tree.
Enums
Position of the epoch identifier.
Persisted epoch stored in EpochChanges.
Persisted epoch header stored in ForkTree.
The viable epoch under which a block can be verified.
Descriptor for a viable epoch.
Traits
Epoch data, distinguish whether it is genesis or not.
A builder for is_descendent_of
functions.
Functions
Produce a descendent query object given the client.
Type Definitions
Type alias to produce the epoch-changes tree from a block type.
A shared epoch changes tree.