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§
sourcefn tranche_now(
&self,
slot_duration_millis: u64,
base_slot: Slot,
) -> DelayTranche
fn tranche_now( &self, slot_duration_millis: u64, base_slot: Slot, ) -> DelayTranche
Returns the current tranche.