[][src]Function sc_consensus_slots::check_equivocation

pub fn check_equivocation<C, H, P>(
    backend: &C,
    slot_now: u64,
    slot: u64,
    header: &H,
    signer: &P
) -> ClientResult<Option<EquivocationProof<H, P>>> where
    H: Header,
    C: AuxStore,
    P: Clone + Encode + Decode + PartialEq

Checks if the header is an equivocation and returns the proof in that case.

Note: it detects equivocations only when slot_now - slot <= MAX_SLOT_CAPACITY.