Expand description
Generic task for collecting votes
StructsΒ§
- Accumulator
Info - Info needed to create a vote accumulator task
- Epoch
Root Vote Collection Task State - Vote
Collection Task State - Task state for collecting votes of one type and emitting a certificate
TraitsΒ§
- Aggregatable
Vote - Describes the functions a vote must implement for it to be aggregatable by the generic vote collection task
- Handle
Vote Event - 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Β§
- DaVote
State π - Alias for DA vote accumulator
- Epoch
Root Vote Collectors Map - A map for extended quorum vote collectors
- Next
Epoch πQuorum Vote State - Alias for Quorum vote accumulator
- Quorum
Vote πState - Alias for Quorum vote accumulator
- Timeout
Vote πState - Alias for Timeout vote accumulator
- Upgrade
Vote πState - Alias for upgrade vote accumulator
- View
Sync πCommit Vote State - Alias for View Sync Commit vote accumulator
- View
Sync πFinalize Vote State - Alias for View Sync Finalize vote accumulator
- View
Sync πPreCommit State - Alias for View Sync Pre Commit vote accumulator
- Vote
Collectors Map - Alias for a map of Vote Collectors