epoch_index

Function 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.