Function sc_consensus_aura::standalone::check_equivocation
pub fn check_equivocation<C, H, P>(
backend: &C,
slot_now: Slot,
slot: Slot,
header: &H,
signer: &P,
) -> Result<Option<EquivocationProof<H, P>>, Error>
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.