Skip to main content

Module consensus

Module consensus 

Source
Expand description

Provides the core consensus types

Re-exportsΒ§

pub use crate::utils::View;
pub use crate::utils::ViewInner;

StructsΒ§

ConsensusMetricsValue
Contains several ConsensusMetrics that we’re interested in from the consensus interfaces
ParticipationTracker
Tracks proposal and vote participation per validator across epochs.
PayloadWithMetadata
This struct holds a payload and its metadata
ValidatorParticipation πŸ”’
VoteParticipation πŸ”’

FunctionsΒ§

resolve_participation_stake_table πŸ”’
track_decided_qc_participation πŸ”’

Type AliasesΒ§

CommitmentMap
A type alias for HashMap<Commitment<T>, T>
ValidatorParticipationMap πŸ”’
VidShares
A type alias for BTreeMap<T::Time, HashMap<T::SignatureKey, BTreeMap<T::Epoch, Proposal<T, VidDisperseShare<T>>>>>
VoteParticipationMap πŸ”’