chore: clarified assert message
Augusto F. Hack hack.augusto@gmail.com
Wed, 22 Mar 2023 11:30:19 +0100
1 files changed,
4 insertions(+),
1 deletions(-)
jump to
M
src/merkle/merkle_tree.rs
→
src/merkle/merkle_tree.rs
@@ -108,7 +108,10 @@ path.push(self.nodes[sibling]);
index.move_up(); } - debug_assert!(index.is_root(), "the path must include the root"); + debug_assert!( + index.is_root(), + "the path walk must go all the way to the root" + ); Ok(path.into()) }