Expand description

Generic utilities for epoch-based consensus engines.

Modules

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.
  • A pair of epochs for the gap block download validation. Block gap is created after the warp sync is complete. Blocks are imported both at the tip of the chain and at the start of the gap. This holds a pair of epochs that are required to validate headers at the start of the gap. Since gap download does not allow forks we don’t need to keep a tree of epochs.
  • 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

Traits

Functions

Type Definitions