relative_height_in_epoch

Function relative_height_in_epoch 

Source
pub fn relative_height_in_epoch(epoch_length: u64, height: u64) -> u64
Expand description

Returns the position of height within its epoch (starting at zero).

Epoch length is defined in number of blocks. Panics if epoch_length is zero.