Module polkadot_node_primitives::disputes
source · Expand description
Disputes related types.
Structs
- Tracked votes on candidates, for the purposes of dispute resolution.
- A dispute initiating/participating message that have been built from signed statements.
- Any invalid vote (currently only explicit).
- A checked dispute statement from an associated validator.
- A
DisputeMessage
where signatures of statements have not yet been checked. - Valid candidate votes.
- Any valid vote (backing, approval, explicit).
Enums
- Things that can go wrong when constructing a
DisputeMessage
. - The status of dispute.
Constants
- The choice here is fairly arbitrary. But any dispute that concluded more than a few minutes ago is not worth considering anymore. Changing this value has little to no bearing on consensus, and really only affects the work that the node might do on startup during periods of many disputes.
Functions
- Returns true if the dispute has concluded for longer than
ACTIVE_DURATION_SECS
.
Type Definitions
- Type alias for retrieving invalid votes from
CandidateVotes
- Timestamp based on the 1 Jan 1970 UNIX base, which is persistent across node restarts and OS reboots.
- Type alias for retrieving valid votes from
CandidateVotes