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>>>
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.