Expand description
Disputes related types.
Structs§
- Candidate
Votes - Tracked votes on candidates, for the purposes of dispute resolution.
- Dispute
Message - A dispute initiating/participating message that have been built from signed statements.
- Invalid
Dispute Vote - Any invalid vote (currently only explicit).
- Signed
Dispute Statement - A checked dispute statement from an associated validator.
- Unchecked
Dispute Message - A
DisputeMessage
where signatures of statements have not yet been checked. - Valid
Candidate Votes - Valid candidate votes.
- Valid
Dispute Vote - Any valid vote (backing, approval, explicit).
Enums§
- Dispute
Message Check Error - Things that can go wrong when constructing a
DisputeMessage
. - Dispute
Status - The status of dispute.
- Signed
Dispute Statement Error - Errors encountered while signing a dispute statement
Constants§
- ACTIVE_
DURATION_ SECS - 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§
- dispute_
is_ inactive - Returns true if the dispute has concluded for longer than
ACTIVE_DURATION_SECS
.
Type Aliases§
- Invalid
Vote Data - Type alias for retrieving invalid votes from
CandidateVotes
- Timestamp
- Timestamp based on the 1 Jan 1970 UNIX base, which is persistent across node restarts and OS reboots.
- Valid
Vote Data - Type alias for retrieving valid votes from
CandidateVotes