feat: introduce recorder objects

This commit is contained in:
frisitano
2023-06-16 11:42:49 +01:00
parent cede2e57da
commit 679a30e02e
9 changed files with 541 additions and 86 deletions

View File

@@ -154,7 +154,8 @@ impl PartialMerkleTree {
self.leaves.iter().map(|&leaf| {
(
leaf,
self.get_node(leaf).expect(&format!("Leaf with {leaf} is not in the nodes map")),
self.get_node(leaf)
.unwrap_or_else(|_| panic!("Leaf with {leaf} is not in the nodes map")),
)
})
}