Type Alias polkadot_statement_table::v2::Misbehavior

source ·
pub type Misbehavior = Misbehavior<CommittedCandidateReceipt, CandidateHash, ValidatorIndex, ValidatorSignature>;
Expand description

Kinds of misbehavior, along with proof.

Aliased Type§

enum Misbehavior {
    ValidityDoubleVote(ValidityDoubleVote<CommittedCandidateReceipt, CandidateHash, Signature>),
    MultipleCandidates(MultipleCandidates<CommittedCandidateReceipt, Signature>),
    UnauthorizedStatement(UnauthorizedStatement<CommittedCandidateReceipt, CandidateHash, ValidatorIndex, Signature>),
    DoubleSign(DoubleSign<CommittedCandidateReceipt, CandidateHash, Signature>),
}

Variants§

§

ValidityDoubleVote(ValidityDoubleVote<CommittedCandidateReceipt, CandidateHash, Signature>)

Voted invalid and valid on validity.

§

MultipleCandidates(MultipleCandidates<CommittedCandidateReceipt, Signature>)

Submitted multiple candidates.

§

UnauthorizedStatement(UnauthorizedStatement<CommittedCandidateReceipt, CandidateHash, ValidatorIndex, Signature>)

Submitted a message that was unauthorized.

§

DoubleSign(DoubleSign<CommittedCandidateReceipt, CandidateHash, Signature>)

Submitted two valid signatures for the same message.

Trait Implementations

source§

impl<Candidate: Clone, Digest: Clone, AuthorityId: Clone, Signature: Clone> Clone for Misbehavior<Candidate, Digest, AuthorityId, Signature>

source§

fn clone(&self) -> Misbehavior<Candidate, Digest, AuthorityId, Signature>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<Candidate: Debug, Digest: Debug, AuthorityId: Debug, Signature: Debug> Debug for Misbehavior<Candidate, Digest, AuthorityId, Signature>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<Candidate: PartialEq, Digest: PartialEq, AuthorityId: PartialEq, Signature: PartialEq> PartialEq for Misbehavior<Candidate, Digest, AuthorityId, Signature>

source§

fn eq( &self, other: &Misbehavior<Candidate, Digest, AuthorityId, Signature>, ) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<Candidate: Eq, Digest: Eq, AuthorityId: Eq, Signature: Eq> Eq for Misbehavior<Candidate, Digest, AuthorityId, Signature>

source§

impl<Candidate, Digest, AuthorityId, Signature> StructuralPartialEq for Misbehavior<Candidate, Digest, AuthorityId, Signature>