UpgradeVoteState

Type Alias UpgradeVoteState 

Source
type UpgradeVoteState<TYPES> = VoteCollectionTaskState<TYPES, UpgradeVote<TYPES>, UpgradeCertificate<TYPES>>;
Expand description

Alias for upgrade vote accumulator

Aliased Type§

struct UpgradeVoteState<TYPES> {
    pub public_key: <TYPES as NodeType>::SignatureKey,
    pub membership: EpochMembership<TYPES>,
    pub accumulator: Option<VoteAccumulator<TYPES, SimpleVote<TYPES, UpgradeProposalData>, SimpleCertificate<TYPES, UpgradeProposalData, UpgradeThreshold>>>,
    pub view: ViewNumber,
    pub id: u64,
    pub transition_indicator: EpochTransitionIndicator,
}

Fields§

§public_key: <TYPES as NodeType>::SignatureKey

Public key for this node.

§membership: EpochMembership<TYPES>

Membership for voting

§accumulator: Option<VoteAccumulator<TYPES, SimpleVote<TYPES, UpgradeProposalData>, SimpleCertificate<TYPES, UpgradeProposalData, UpgradeThreshold>>>

accumulator handles aggregating the votes

§view: ViewNumber

The view which we are collecting votes for

§id: u64

Node id

§transition_indicator: EpochTransitionIndicator

Whether we should check if we are the leader when handling a vote