Function sc_consensus_slots::slot_lenience_linear
source · pub fn slot_lenience_linear<Block: BlockT>(
parent_slot: Slot,
slot_info: &SlotInfo<Block>,
) -> Option<Duration>
Expand description
Calculate a slot duration lenience based on the number of missed slots from current
to parent. If the number of skipped slots is greater than 0 this method will apply
a linear backoff of at most 20 * slot_duration
, if no slots were skipped
this method will return None.