Skip to main content

Module election

Module election 

Source
Expand description

The election trait, used to decide which node is the leader and determine if a vote is valid.

Reads of per-epoch state go through a MembershipSnapshot obtained from Membership::snapshot. Reads of pre-epoch state go through a NonEpochMembershipSnapshot obtained from Membership::non_epoch_snapshot. Each snapshot is a consistent point-in-time view; its accessors observe one moment of the membership state, so derived values from the same snapshot are guaranteed to come from one logical instant.

Structs§

NoStakeTableHash

Traits§

Membership
A protocol for determining membership in and participating in a committee.
MembershipSnapshot
A consistent per-epoch view of a Membership.
NonEpochMembershipSnapshot
A consistent view of the pre-epoch Membership state.