Crate sc_consensus_epochs

source ·
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.
  • 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 Aliases§