fn update_block_set<T: HasHeight + HasBlockHash>(
    block_set: &mut BlockSet,
    finalized_height: Height,
    pool_section: &dyn HeightIndexedPool<T>,
    histogram: &Histogram,
) {
    let _timer = histogram.start_timer();
    if let Some(max_height) = pool_section.max_height() {
        let range = HeightRange::new(finalized_height.increment(), max_height);
        for obj in pool_section.get_by_height_range(range) {
            let hash = obj.block_hash();
            block_set.insert(hash.clone());
        }
    }
}
/// Update the given BlockSet with blocks that are references by artifacts
/// in the given `pool_section`, meant to be used for both Finalization and
/// Notarization. Only artifacts with height greater than finalized_height
/// are considered. A BlockMap is used to cache loaded blocks to
/// avoid an unnecessary reading of the consensus pool for the same set of
/// blocks.
Update the given BlockSet with blocks that are references by artifacts
in the given `pool_section`, meant to be used for both Finalization and
Notarization. Only artifacts with height greater than finalized_height
are considered. A BlockMap is used to cache loaded blocks to
avoid an unnecessary reading of the consensus pool for the same set of
blocks.
Update the given BlockSet with blocks that are references by artifacts in the given ` pool_section ` meant to be used for both Finalization and Notarization . Only artifacts with height greater than finalized_height are considered . A BlockMap is used to cache loaded blocks to avoid an unnecessary reading of the consensus pool for the same set of blocks .
fn update_block_set<T: HasHeight + HasBlockHash>(
    block_set: &mut BlockSet,
    finalized_height: Height,
    pool_section: &dyn HeightIndexedPool<T>,
    histogram: &Histogram,
) {
    let _timer = histogram.start_timer();
    if let Some(max_height) = pool_section.max_height() {
        let range = HeightRange::new(finalized_height.increment(), max_height);
        for obj in pool_section.get_by_height_range(range) {
            let hash = obj.block_hash();
            block_set.insert(hash.clone());
        }
    }
}
fn update_block_set < T : HasHeight + HasBlockHash > ( block_set : & mut BlockSet , finalized_height : Height , pool_section : & dyn HeightIndexedPool < T > , histogram : & Histogram , ) { let _timer = histogram . start_timer ( ) ; if let Some ( max_height ) = pool_section . max_height ( ) { let range = HeightRange :: new ( finalized_height . increment ( ) , max_height ) ; for obj in pool_section . get_by_height_range ( range ) { let hash = obj . block_hash ( ) ; block_set . insert ( hash . clone ( ) ) ; } } }
Update the given BlockSet with blocks that are references by artifacts
in the given `pool_section`, meant to be used for both Finalization and
Notarization.
Update the given BlockSet with blocks that are references by artifacts in the given ` pool_section ` meant to be used for both Finalization and Notarization .
block_set
&mut BlockSet
finalized_height
Height
pool_section
&dyn HeightIndexedPool<T>
histogram
&Histogram
block_set
&mut BlockSet
finalized_height
Height
pool_section
&dyn HeightIndexedPool<T>
histogram
&Histogram