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.