referrerpolicy=no-referrer-when-downgrade

Function sp_consensus_babe::epoch_index

source ·
pub fn epoch_index(slot: Slot, genesis_slot: Slot, epoch_duration: u64) -> u64
Expand description

Returns the epoch index the given slot belongs to.