remove unnecessary cast

This commit is contained in:
Yeastplume 2024-02-06 14:26:47 +00:00
parent afb2d40dfd
commit 0a7be2b3c0

View file

@ -1363,7 +1363,7 @@ impl<'a> Extension<'a> {
/// Once the PIBD set is downloaded, we need to ensure that the respective leaf sets
/// match the bitmap (particularly in the case of outputs being spent after a PIBD catch-up)
pub fn update_leaf_sets(&mut self, bitmap: &Bitmap) -> Result<(), Error> {
let flipped = bitmap.flip(0u32..bitmap.maximum().unwrap() as u32 + 1);
let flipped = bitmap.flip(0u32..bitmap.maximum().unwrap() + 1);
for spent_pmmr_index in flipped.iter() {
let pos0 = pmmr::insertion_to_pmmr_index(spent_pmmr_index.into());
self.output_pmmr.remove_from_leaf_set(pos0);