Skip to content

Commit

Permalink
skip root hash calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
msmouse committed Jun 25, 2024
1 parent fbe3a0e commit 2904353
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions storage/scratchpad/src/sparse_merkle/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -423,6 +423,7 @@ where
return Ok(self.clone());
}

/*
let inc_hash_diff = updates
.par_iter()
.fold(
Expand Down Expand Up @@ -452,6 +453,8 @@ where
);
let mut inc_hash = self.smt.inner.root().inc_hash.clone();
inc_hash.union(&inc_hash_diff);
*/
let inc_hash = self.smt.inner.root().inc_hash.clone();

let content = self
.smt
Expand Down

0 comments on commit 2904353

Please sign in to comment.