type QuorumVoteState<TYPES, V> = VoteCollectionTaskState<TYPES, QuorumVote2<TYPES>, QuorumCertificate2<TYPES>, V>;
Expand description
Alias for Quorum vote accumulator
Aliased Type§
struct QuorumVoteState<TYPES, V> {
pub public_key: <TYPES as NodeType>::SignatureKey,
pub membership: EpochMembership<TYPES>,
pub accumulator: Option<VoteAccumulator<TYPES, SimpleVote<TYPES, QuorumData2<TYPES>>, SimpleCertificate<TYPES, QuorumData2<TYPES>, SuccessThreshold>, V>>,
pub view: <TYPES as NodeType>::View,
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, QuorumData2<TYPES>>, SimpleCertificate<TYPES, QuorumData2<TYPES>, SuccessThreshold>, V>>
accumulator handles aggregating the votes
view: <TYPES as NodeType>::View
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