Expand description
Per-view vote collection and certificate formation.
Votes for views arrive concurrently, and each view is tallied on its own
until it crosses a threshold and forms a certificate. VoteCollector
owns the machinery common to every kind of vote, inspecting each vote only
through the Ballot trait. It creates a task per view and routes votes
to the appropriate task, drops duplicate and stale votes, buffers votes
whose epoch is not yet resolved, and GCs decided views. How a view’s task
actually combines votes into an output is delegated to a pluggable Tally
strategy.
Modules§
Structs§
- Epoch
Root Tally - Accumulates epoch-root
Vote1s into the (quorum, state) certificate pair. - Simple
Tally - Accumulates votes into a single
Certificatevia aCheckedAccumulator. - Vote
Collector - Collects votes per view and forms certificate(s) using the strategy
S. - Vote
Stats - Accumulated stake / threshold for a single view.
Traits§
Type Aliases§
- Epoch
Root Certs - The quorum and light-client state certificates formed at an epoch-root view.