fix: should dedup leaves when generating proof

This commit is contained in:
quake
2022-08-31 19:51:43 +09:00
parent be4f439efd
commit 7f17ffb33a
2 changed files with 9 additions and 2 deletions
+5
View File
@@ -140,6 +140,11 @@ fn test_gen_root_from_proof() {
test_gen_new_root_from_proof(11);
}
#[test]
fn test_gen_proof_with_duplicate_leaves() {
test_mmr(10, vec![5, 5]);
}
prop_compose! {
fn count_elem(count: u32)
(elem in 0..count)