Skip to content

Commit

Permalink
Add lock to merkle bench
Browse files Browse the repository at this point in the history
  • Loading branch information
dominicletz committed Jan 19, 2025
1 parent c2c243f commit 4626472
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scripts/cmerkle_bench2.exs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ for i <- 1..1000000 do
CMerkleTree.get_proofs(tree, key) != nil
end
^tree_size = length(CMerkleTree.to_list(tree))
CMerkleTree.lock(tree)

if CMerkleTree.root_hash(tree) != ref do
raise("Error #{Base16.encode(CMerkleTree.root_hash(tree))} != #{Base16.encode(ref)}")
Expand Down

0 comments on commit 4626472

Please sign in to comment.