Expand description
Utility functions for consensus.
Functionsยง
- epoch
- Returns the epoch the given height belongs to.
- is_
last_ block_ in_ epoch - Returns
Some(epoch)if the height is the last block in the epoch,Noneotherwise. - last_
block_ in_ epoch - Returns the last block height for the given epoch.
- relative_
height_ in_ epoch - Returns the position of
heightwithin its epoch (starting at zero).