Type Alias hotshot_task_impls::vote_collection::NextEpochQuorumVoteState
source · type NextEpochQuorumVoteState<TYPES, V> = VoteCollectionTaskState<TYPES, NextEpochQuorumVote2<TYPES>, NextEpochQuorumCertificate2<TYPES>, V>;Expand description
Alias for Quorum vote accumulator
Aliased Type§
struct NextEpochQuorumVoteState<TYPES, V> {
pub public_key: <TYPES as NodeType>::SignatureKey,
pub membership: Arc<RwLock<<TYPES as NodeType>::Membership>>,
pub accumulator: Option<VoteAccumulator<TYPES, SimpleVote<TYPES, NextEpochQuorumData2<TYPES>>, SimpleCertificate<TYPES, NextEpochQuorumData2<TYPES>, SuccessThreshold>, V>>,
pub view: <TYPES as NodeType>::View,
pub epoch: Option<<TYPES as NodeType>::Epoch>,
pub id: u64,
pub transition_indicator: EpochTransitionIndicator,
}Fields§
§public_key: <TYPES as NodeType>::SignatureKeyPublic key for this node.
membership: Arc<RwLock<<TYPES as NodeType>::Membership>>Membership for voting
accumulator: Option<VoteAccumulator<TYPES, SimpleVote<TYPES, NextEpochQuorumData2<TYPES>>, SimpleCertificate<TYPES, NextEpochQuorumData2<TYPES>, SuccessThreshold>, V>>accumulator handles aggregating the votes
view: <TYPES as NodeType>::ViewThe view which we are collecting votes for
epoch: Option<<TYPES as NodeType>::Epoch>The epoch which we are collecting votes for
id: u64Node id
transition_indicator: EpochTransitionIndicatorWhether we should check if we are the leader when handling a vote