referrerpolicy=no-referrer-when-downgrade
substrate_relay_helper::equivocation

Trait ReportEquivocationCallBuilder

Source
pub trait ReportEquivocationCallBuilder<P: SubstrateEquivocationDetectionPipeline> {
    // Required method
    fn build_report_equivocation_call(
        equivocation_proof: EquivocationProofOf<P>,
        key_owner_proof: KeyOwnerProofOf<P>,
    ) -> CallOf<P::SourceChain>;
}
Expand description

Different ways of building report_equivocation calls.

Required Methods§

Source

fn build_report_equivocation_call( equivocation_proof: EquivocationProofOf<P>, key_owner_proof: KeyOwnerProofOf<P>, ) -> CallOf<P::SourceChain>

Build a report_equivocation call to be executed on the source chain.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<P, R> ReportEquivocationCallBuilder<P> for DirectReportGrandpaEquivocationCallBuilder<P, R>
where P: SubstrateEquivocationDetectionPipeline, P::FinalityEngine: Engine<P::SourceChain, EquivocationProof = EquivocationProof<HashOf<P::SourceChain>, BlockNumberOf<P::SourceChain>>>, R: Config<Hash = HashOf<P::SourceChain>> + GrandpaConfig<KeyOwnerProof = KeyOwnerProofOf<P>>, <R::Block as Block>::Header: Header<Number = BlockNumberOf<P::SourceChain>>, CallOf<P::SourceChain>: From<Call<R>>,