Module vote_collection

Source
Expand description

Generic task for collecting votes

StructsΒ§

AccumulatorInfo
Info needed to create a vote accumulator task
EpochRootVoteCollectionTaskState
VoteCollectionTaskState
Task state for collecting votes of one type and emitting a certificate

TraitsΒ§

AggregatableVote
Describes the functions a vote must implement for it to be aggregatable by the generic vote collection task
HandleVoteEvent
Trait for types which will handle a vote event.

FunctionsΒ§

create_epoch_root_vote_collection_task_state πŸ”’
create_vote_accumulator
Generic function for spawning a vote task. Returns the event stream id of the spawned task if created
handle_epoch_root_vote
A helper function that handles quorum vote collection for epoch root
handle_vote
A helper function that handles a vote regardless whether it’s the first vote in the view or not.

Type AliasesΒ§

DaVoteState πŸ”’
Alias for DA vote accumulator
EpochRootVoteCollectorsMap
A map for extended quorum vote collectors
NextEpochQuorumVoteState πŸ”’
Alias for Quorum vote accumulator
QuorumVoteState πŸ”’
Alias for Quorum vote accumulator
TimeoutVoteState πŸ”’
Alias for Timeout vote accumulator
UpgradeVoteState πŸ”’
Alias for upgrade vote accumulator
ViewSyncCommitVoteState πŸ”’
Alias for View Sync Commit vote accumulator
ViewSyncFinalizeVoteState πŸ”’
Alias for View Sync Finalize vote accumulator
ViewSyncPreCommitState πŸ”’
Alias for View Sync Pre Commit vote accumulator
VoteCollectorsMap
Alias for a map of Vote Collectors