Skip to content

Commit 8ca2247

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. Co-Authored-By: OpenAI Codex <noreply@openai.com>
1 parent 4e6a32a commit 8ca2247

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

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)