Expand description
Generic utilities for epoch-based consensus engines.
Modules§
- migration
- Migration types for epoch changes.
Structs§
- Epoch
Changes - 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.
- Epoch
Header - Header of epoch data, consisting of start and end slot.
- Epoch
Identifier - Epoch identifier.
- Header
Backend Descendent Builder - Wrapper to get around unconstrained type errors when implementing
IsDescendentOfBuilder
for header backends. - Incremented
Epoch - A fresh, incremented epoch to import into the underlying fork-tree.
Enums§
- Epoch
Identifier Position - Position of the epoch identifier.
- Persisted
Epoch - Persisted epoch stored in EpochChanges.
- Persisted
Epoch Header - Persisted epoch header stored in ForkTree.
- Viable
Epoch - The viable epoch under which a block can be verified.
- Viable
Epoch Descriptor - Descriptor for a viable epoch.
Traits§
- Epoch
- Epoch data, distinguish whether it is genesis or not.
- IsDescendent
OfBuilder - A builder for
is_descendent_of
functions.
Functions§
- descendent_
query - Produce a descendent query object given the client.
Type Aliases§
- Epoch
Changes For - Type alias to produce the epoch-changes tree from a block type.
- Shared
Epoch Changes - A shared epoch changes tree.