Expand description
Epoch Membership wrappers
Structsยง
- Attempt
Entry ๐ - Holds an epochโs place in an
Attemptsmap for as long as its owner is driving it. - Attempts ๐
- The in-flight attempts of one kind of work, keyed by the epoch they serve.
- DrbState
Guard ๐ - Owns one computationโs entry in
drb_computations. Dropping it releases the claim and fires the token it held. - Epoch
Membership - Wrapper around a membership that holds a captured snapshot for a given epoch (or the pre-epoch state). All accessors observe one consistent view because the snapshot is held inline.
- Epoch
Membership Coordinator - Struct to Coordinate membership catchup
Enumsยง
Constantsยง
- DEFAULT_
CATCHUP_ ๐TIMEOUT - Default upper bound on a single catchup step.
Type Aliasesยง
- Attempt ๐
- One in-flight attempt, shared by every caller that asks for the same epoch while it runs. Whoever polls it drives it, so it outlives the task that started it as long as somebody is still waiting.
- DrbComputations ๐
- The in-flight DRB computations, each with the token that stops it. An entry is the claim on its epoch: one computation runs per epoch, and the next may start only once the entry is gone.
- Result ๐
- Snapshot ๐
- The per-epoch snapshot type associated with
T::Membership. - Snapshot
Stake ๐Table Hash - The stake-table hash type associated with
T::Membershipโs per-epoch snapshot.