diff --git a/base_layer/core/src/chain_storage/blockchain_database.rs b/base_layer/core/src/chain_storage/blockchain_database.rs index 97f83da7e0..22ebe57d1b 100644 --- a/base_layer/core/src/chain_storage/blockchain_database.rs +++ b/base_layer/core/src/chain_storage/blockchain_database.rs @@ -66,7 +66,7 @@ use std::{ collections::VecDeque, convert::TryFrom, mem, - ops::Bound, + ops::{Bound, RangeBounds}, sync::{Arc, RwLock, RwLockReadGuard, RwLockWriteGuard}, time::Instant, }; @@ -75,8 +75,7 @@ use tari_common_types::{ types::{BlockHash, Commitment, HashDigest, HashOutput, Signature}, }; use tari_crypto::tari_utilities::{hex::Hex, ByteArray, Hashable}; -use tari_mmr::{MerkleMountainRange, MutableMmr}; -use uint::static_assertions::_core::ops::RangeBounds; +use tari_mmr::{pruned_hashset::PrunedHashSet, MerkleMountainRange, MutableMmr}; const LOG_TARGET: &str = "c::cs::database"; @@ -995,7 +994,7 @@ pub fn calculate_mmr_roots(db: &T, block: &Block) -> Resul let mut kernel_mmr = MerkleMountainRange::::new(kernels); let mut output_mmr = MutableMmr::::new(outputs, deleted)?; let mut witness_mmr = MerkleMountainRange::::new(range_proofs); - let mut input_mmr = MutableMmr::::new(Vec::new(), Bitmap::create())?; + let mut input_mmr = MerkleMountainRange::::new(PrunedHashSet::default()); for kernel in body.kernels().iter() { kernel_mmr.push(kernel.hash())?;