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.