referrerpolicy=no-referrer-when-downgrade

bag_peaks

Function bag_peaks 

Source
pub fn bag_peaks(peaks: &[Hash]) -> Hash
Expand description

Bag the peaks (highest to lowest) with mmr_lib’s own bagging, so the result equals MMR::get_root. Not a stream root: MmrRoot::from_bag binds the leaf count over it. No peaks bag to zero.