mirror of
https://github.com/mimblewimble/grin.git
synced 2025-05-08 10:11:14 +03:00
remove unnecessary cast
This commit is contained in:
parent
afb2d40dfd
commit
0a7be2b3c0
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue