pub fn block_num_to_leaf_index<H: Header>( block_num: H::Number, first_mmr_block_num: H::Number, ) -> Result<LeafIndex, Error>
Convert a block number into a leaf index.