[][src]Trait sp_staking::offence::ReportOffence

pub trait ReportOffence<Reporter, Offender, O: Offence<Offender>> {
    fn report_offence(
        reporters: Vec<Reporter>,
        offence: O
    ) -> Result<(), OffenceError>; }

A trait for decoupling offence reporters from the actual handling of offence reports.

Required methods

fn report_offence(
    reporters: Vec<Reporter>,
    offence: O
) -> Result<(), OffenceError>

Report an offence and reward given reporters.

Loading content...

Implementations on Foreign Types

impl<Reporter, Offender, O: Offence<Offender>> ReportOffence<Reporter, Offender, O> for ()[src]

Loading content...

Implementors

Loading content...