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§
Traits§
- Membership
- A protocol for determining membership in and participating in a committee.
- Membership
Snapshot - A consistent per-epoch view of a
Membership. - NonEpoch
Membership Snapshot - A consistent view of the pre-epoch
Membershipstate.