Loading
Add BlockHeight and BlockDelta hard types
Breaking change that adds a hard BlockHeight and BlockDelta type with the following properties:
BlockHeightwrapsu32BlockDeltawrapsu16- both types have
checked_andsaturating_methods for explicit math ops::AddforBlockHeiht+BlockDeltaimplementssaturating_addops::AddforBlockDelta+BlockDeltaimplementssaturating_addBlockHeighthaschecked_sub(BlockHeight) -> Option<BlockDelta>BlockHeighthaschecked_blocks_since(BlockHeight) -> Option<u32>which is often more practical
I recognize this is huge. Not in a hurry.
Edited by Steven Roose