Skip to content

Fix BOLT11 DuplicatePayment triggering on-chain fallback in unified payment - #1038

Open
elnafateh wants to merge 2 commits into
lightningdevkit:mainfrom
elnafateh:fix/unified-payment-duplicate-fallback
Open

Fix BOLT11 DuplicatePayment triggering on-chain fallback in unified payment#1038
elnafateh wants to merge 2 commits into
lightningdevkit:mainfrom
elnafateh:fix/unified-payment-duplicate-fallback

Conversation

@elnafateh

Copy link
Copy Markdown
Contributor

UnifiedPayment::send previously fell back to the on-chain method after any
BOLT11 error, including Error::DuplicatePayment. Retrying a unified BIP21
payment could pay the recipient twice — once over Lightning, once on-chain.

Error::DuplicatePayment is now treated as terminal and returned to the
caller immediately, preventing the unsafe fallback.

Adds an integration test covering the retry scenario.
#1033

…ayments

Error::DuplicatePayment is now terminal in UnifiedPayment::send, preventing
a duplicate Lightning payment from falling back to an on-chain payment.
@ldk-reviews-bot

ldk-reviews-bot commented Aug 10, 2026

Copy link
Copy Markdown

I've assigned @tnull as a reviewer!
I'll wait for their review and will help manage the review process.
Once they submit their review, I'll check if a second reviewer would be helpful.

@ldk-reviews-bot
ldk-reviews-bot requested a review from tnull August 10, 2026 15:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants