pub trait GrandpaOffence<FullIdentification>: Offence<FullIdentification> {
    fn new(
        session_index: SessionIndex,
        validator_set_count: u32,
        offender: FullIdentification,
        set_id: SetId,
        round: RoundNumber
    ) -> Self; fn new_time_slot(set_id: SetId, round: RoundNumber) -> Self::TimeSlot; }
Expand description

An interface for types that will be used as GRANDPA offences and must also implement the Offence trait. This trait provides a constructor that is provided all available data during processing of GRANDPA equivocations.

Required Methods§

source

fn new(
    session_index: SessionIndex,
    validator_set_count: u32,
    offender: FullIdentification,
    set_id: SetId,
    round: RoundNumber
) -> Self

Create a new GRANDPA offence using the given equivocation details.

source

fn new_time_slot(set_id: SetId, round: RoundNumber) -> Self::TimeSlot

Create a new GRANDPA offence time slot.

Implementors§

source§

impl<FullIdentification: Clone> GrandpaOffence<FullIdentification> for GrandpaEquivocationOffence<FullIdentification>