Type Alias hotshot_task_impls::vote_collection::ViewSyncPreCommitState
source · type ViewSyncPreCommitState<TYPES, V> = VoteCollectionTaskState<TYPES, ViewSyncPreCommitVote2<TYPES>, ViewSyncPreCommitCertificate2<TYPES>, V>;
Expand description
Alias for View Sync Pre Commit vote accumulator
Aliased Type§
struct ViewSyncPreCommitState<TYPES, V> {
pub public_key: <TYPES as NodeType>::SignatureKey,
pub membership: Arc<RwLock<<TYPES as NodeType>::Membership>>,
pub accumulator: Option<VoteAccumulator<TYPES, SimpleVote<TYPES, ViewSyncPreCommitData2<TYPES>>, SimpleCertificate<TYPES, ViewSyncPreCommitData2<TYPES>, OneHonestThreshold>, V>>,
pub view: <TYPES as NodeType>::View,
pub epoch: <TYPES as NodeType>::Epoch,
pub id: u64,
pub transition_indicator: EpochTransitionIndicator,
}
Fields§
§public_key: <TYPES as NodeType>::SignatureKey
Public key for this node.
membership: Arc<RwLock<<TYPES as NodeType>::Membership>>
Membership for voting
accumulator: Option<VoteAccumulator<TYPES, SimpleVote<TYPES, ViewSyncPreCommitData2<TYPES>>, SimpleCertificate<TYPES, ViewSyncPreCommitData2<TYPES>, OneHonestThreshold>, V>>
accumulator handles aggregating the votes
view: <TYPES as NodeType>::View
The view which we are collecting votes for
epoch: <TYPES as NodeType>::Epoch
The epoch 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