Skip to content

Commit 44ecb16

Browse files
fix: reconstruct omitted payer proof subtrees
Allow payer proof merkle reconstruction to reuse hashes placed at omitted subtree roots instead of descending into already materialized descendants.
1 parent 15eeebd commit 44ecb16

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lightning/src/offers/merkle.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -645,9 +645,7 @@ pub(super) fn reconstruct_merkle_root<'a>(
645645
Some(tagged_branch_hash_from_engine(branch_tag.clone(), l, r));
646646
},
647647
(Some(_), None) => {},
648-
(None, _) => {
649-
return Err(SelectiveDisclosureError::InsufficientMissingHashes);
650-
},
648+
(None, _) => {},
651649
};
652650
}
653651
}

0 commit comments

Comments
 (0)