referrerpolicy=no-referrer-when-downgrade
polkadot_node_primitives::approval::time

Trait 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