referrerpolicy=no-referrer-when-downgrade

Function report_offence

Source
pub fn report_offence<T: Config>(
    offences: Vec<(IdentificationTuple<T>, SessionIndex, u128, u32)>,
)
Expand description

Same as Pallet::create_offence, but it reports the offence directly to a Config::ReportOffence, aka pallet-offences first.

This is useful for more accurate testing of the e2e offence processing pipeline, as it won’t skip the pallet-offences step.

It generates an offence of type TestSpamOffence, with cas a fixed ID, but can have any time_slot, session_index``, and slash_fraction. These values are the inputs of transaction, int the same order, with an IdentiticationTuple` coming first.

§Warning: Doc-Only

This function is an automatically generated, and is doc-only, uncallable stub. See the real version in Pallet::report_offence.