referrerpolicy=no-referrer-when-downgrade

Function sc_consensus_slots::slot_lenience_exponential

source ·
pub fn slot_lenience_exponential<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 an exponential backoff of at most 2^7 * slot_duration, if no slots were skipped this method will return None.