Skip to main content

Module membership

Module membership 

Source
Expand description

Implementations for test memberships elections used for consensus

Modules§

fetcher
helpers
general helpers
randomized_committee
leader completely randomized every view
randomized_committee_members
quorum randomized every view, with configurable overlap
stake_table
static_committee
static (round robin) committee election
static_committee_leader_two_views
static (round robin leader for 2 consecutive views) committee election
strict_membership
two_static_committees
two static (round robin) committees for even and odd epochs

Traits§

TestableMembership
Test-only extension of Membership that lets tests install the Leaf2Fetcher wiring needed for epoch-root catchup. Production memberships don’t need this — only types that route catchup through a test fetcher (e.g. StrictMembership) implement it.