pub fn proposing_remaining_duration<Block: BlockT>(
    parent_slot: Option<Slot>,
    slot_info: &SlotInfo<Block>,
    block_proposal_slot_portion: &SlotProportion,
    max_block_proposal_slot_portion: Option<&SlotProportion>,
    slot_lenience_type: SlotLenienceType,
    log_target: &str
) -> Duration
Expand description

Calculate the remaining duration for block proposal taking into account whether any slots have been skipped and applying the given lenience strategy. If max_block_proposal_slot_portion is not none this method guarantees that the returned duration must be lower or equal to slot_info.duration * max_block_proposal_slot_portion.