Function grin_core::core::pmmr::peak_sizes_height

source ·
pub fn peak_sizes_height(size: u64) -> (Vec<u64>, u64)
Expand description

sizes of peaks and height of next node in mmr of given size similar to peak_map_height but replacing bitmap by vector of sizes Example: on input 5 returns ([3,1], 1) as mmr state before adding 5 was 2 /
0 1 3 4