pub(crate) fn is_first_block_in_epoch(
epoch_length: u64,
height: u64,
) -> Option<Epoch>Expand description
Returns Some(epoch) if height is the last block in an epoch of epoch_length.
ยงPanics
Panics if epoch_length = 0 and height = 0.