Function sp_mmr_primitives::utils::block_num_to_leaf_index
source · pub fn block_num_to_leaf_index<H: Header>(
block_num: H::Number,
first_mmr_block_num: H::Number
) -> Result<LeafIndex, Error>
Expand description
Convert a block number into a leaf index.