Skip to content

Commit

Permalink
fix: compile
Browse files Browse the repository at this point in the history
  • Loading branch information
cchudant committed Sep 25, 2024
1 parent 90400b0 commit b14c545
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/trie/tree.rs
Original file line number Diff line number Diff line change
Expand Up @@ -556,14 +556,12 @@ impl<H: StarkHash + Send + Sync> MerkleTree<H> {
return Ok(());
}
}
log::trace!("KEY={key:b}");
self.dump();
let mut iter = self.iter(db);
iter.seek_to(key)?;
log::trace!("iter={iter:?}");
let path_nodes_ = iter.cur_path_nodes_heights.into_iter().map(|n| n.0).collect::<Vec<_>>();
// let (path_nodes, _path) = self.preload_nodes(db, key)?;
// assert_eq!(path_nodes_, path_nodes);
let (path_nodes, _path) = self.preload_nodes(db, key)?;
assert_eq!(path_nodes_, path_nodes);
// There are three possibilities.
//
// 1. The leaf exists, in which case we simply change its value.
Expand Down

0 comments on commit b14c545

Please sign in to comment.