Type Alias polkadot_statement_table::generic::MisbehaviorFor

source ·
pub type MisbehaviorFor<Ctx> = Misbehavior<<Ctx as Context>::Candidate, <Ctx as Context>::Digest, <Ctx as Context>::AuthorityId, <Ctx as Context>::Signature>;
Expand description

Type alias for misbehavior corresponding to context type.

Aliased Type§

enum MisbehaviorFor<Ctx> {
    ValidityDoubleVote(ValidityDoubleVote<<Ctx as Context>::Candidate, <Ctx as Context>::Digest, <Ctx as Context>::Signature>),
    MultipleCandidates(MultipleCandidates<<Ctx as Context>::Candidate, <Ctx as Context>::Signature>),
    UnauthorizedStatement(UnauthorizedStatement<<Ctx as Context>::Candidate, <Ctx as Context>::Digest, <Ctx as Context>::AuthorityId, <Ctx as Context>::Signature>),
    DoubleSign(DoubleSign<<Ctx as Context>::Candidate, <Ctx as Context>::Digest, <Ctx as Context>::Signature>),
}

Variants§

§

ValidityDoubleVote(ValidityDoubleVote<<Ctx as Context>::Candidate, <Ctx as Context>::Digest, <Ctx as Context>::Signature>)

Voted invalid and valid on validity.

§

MultipleCandidates(MultipleCandidates<<Ctx as Context>::Candidate, <Ctx as Context>::Signature>)

Submitted multiple candidates.

§

UnauthorizedStatement(UnauthorizedStatement<<Ctx as Context>::Candidate, <Ctx as Context>::Digest, <Ctx as Context>::AuthorityId, <Ctx as Context>::Signature>)

Submitted a message that was unauthorized.

§

DoubleSign(DoubleSign<<Ctx as Context>::Candidate, <Ctx as Context>::Digest, <Ctx as Context>::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>