From 0a7be2b3c0b3c02cb4e515641c59f0987b81e097 Mon Sep 17 00:00:00 2001 From: Yeastplume Date: Tue, 6 Feb 2024 14:26:47 +0000 Subject: [PATCH] remove unnecessary cast --- chain/src/txhashset/txhashset.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chain/src/txhashset/txhashset.rs b/chain/src/txhashset/txhashset.rs index 895a7df12..a0d6bc64c 100644 --- a/chain/src/txhashset/txhashset.rs +++ b/chain/src/txhashset/txhashset.rs @@ -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);