Skip to main content

Module epoch_membership

Module epoch_membership 

Source
Expand description

Epoch Membership wrappers

Structsยง

AttemptEntry ๐Ÿ”’
Holds an epochโ€™s place in an Attempts map 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.
DrbStateGuard ๐Ÿ”’
Owns one computationโ€™s entry in drb_computations. Dropping it releases the claim and fires the token it held.
EpochMembership
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.
EpochMembershipCoordinator
Struct to Coordinate membership catchup

Enumsยง

EpochMembershipSnapshot ๐Ÿ”’

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.
SnapshotStakeTableHash ๐Ÿ”’
The stake-table hash type associated with T::Membershipโ€™s per-epoch snapshot.