referrerpolicy=no-referrer-when-downgrade

Trait polkadot_node_primitives::approval::time::ClockExt

source ·
pub trait ClockExt {
    // Required method
    fn tranche_now(
        &self,
        slot_duration_millis: u64,
        base_slot: Slot,
    ) -> DelayTranche;
}
Expand description

Extension methods for clocks.

Required Methods§

source

fn tranche_now( &self, slot_duration_millis: u64, base_slot: Slot, ) -> DelayTranche

Returns the current tranche.

Implementors§

source§

impl<C: Clock + ?Sized> ClockExt for C