referrerpolicy=no-referrer-when-downgrade

Trait bp_header_chain::FindEquivocations

source ·
pub trait FindEquivocations<FinalityProof, FinalityVerificationContext, EquivocationProof> {
    type Error: Debug;

    // Required method
    fn find_equivocations(
        verification_context: &FinalityVerificationContext,
        synced_proof: &FinalityProof,
        source_proofs: &[FinalityProof],
    ) -> Result<Vec<EquivocationProof>, Self::Error>;
}
Expand description

Helper trait for finding equivocations in finality proofs.

Required Associated Types§

source

type Error: Debug

The type returned when encountering an error while looking for equivocations.

Required Methods§

source

fn find_equivocations( verification_context: &FinalityVerificationContext, synced_proof: &FinalityProof, source_proofs: &[FinalityProof], ) -> Result<Vec<EquivocationProof>, Self::Error>

Find equivocations.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<C: ChainWithGrandpa> FindEquivocations<GrandpaJustification<<C as Chain>::Header>, JustificationVerificationContext, EquivocationProof<<C as Chain>::Hash, <C as Chain>::BlockNumber>> for GrandpaEquivocationsFinder<C>

§

type Error = Error