[−][src]Module finality_grandpa::voter
A voter in GRANDPA. This transitions between rounds and casts votes.
Voters rely on some external context to function:
- setting timers to cast votes.
- incoming vote streams.
- providing voter weights.
- getting the local voter id.
The local voter id is used to check whether to cast votes for a given round. If no local id is defined or if it's not part of the voter set then votes will not be pushed to the sink. The protocol state machine still transitions state as if the votes had been pushed out.
Structs
BadCommit | The result of processing for a bad commit |
CatchUp | A message for catching-up to a round. |
CatchUpRequest | A request to catch-up, given current round. |
GoodCommit | The result of processing for a good commit. |
RoundData | Data necessary to participate in a round. |
Voter | A future that maintains and multiplexes between different rounds, and caches votes. |
Enums
AuxiliaryCommunication | Communication between nodes that is not round-localized. |
Callback | Callback used to propagate the commit in case the outcome is good. |
CommitProcessingOutcome | The outcome of processing a commit. |
CommunicationIn | Communication between nodes that is not round-localized. |
CommunicationOut | Communication between nodes that is not round-localized. |
Traits
Environment | Necessary environment for a voter. |