Function sc_consensus_slots::check_equivocation

source ·
pub fn check_equivocation<C, H, P>(
    backend: &C,
    slot_now: Slot,
    slot: Slot,
    header: &H,
    signer: &P
) -> Result<Option<EquivocationProof<H, P>>>
where H: Header, C: AuxStore, P: Clone + Encode + Decode + PartialEq,
Expand description

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.