Skip to content

Fix Bolt12 path fee hiding#3311

Merged
t-bast merged 2 commits into
masterfrom
fix-bolt12-hidden-fees
May 20, 2026
Merged

Fix Bolt12 path fee hiding#3311
t-bast merged 2 commits into
masterfrom
fix-bolt12-hidden-fees

Conversation

@t-bast
Copy link
Copy Markdown
Member

@t-bast t-bast commented May 20, 2026

When using blinded paths in our Bolt12 invoices, we may use a feature where instead of making the payer pay the fees for the blinded path, we deduce them from the amount we wish to receive (the recipient pays for the privacy it gains from using blinded paths, instead of making the payer pay for something that they didn't opt into). See #2993 for more details.

The constraint on path fees was wrong in some rounding cases, so we fix that, otherwise we would unnecessarily reject some payments. This was found by testing blinded trampoline payments.

When using blinded paths in our Bolt12 invoices, we may use a feature
where instead of making the payer pay the fees for the blinded path,
we deduce them from the amount we wish to receive (the recipient pays
for the privacy it gains from using blinded paths, instead of making
the payer pay for something that they didn't opt into). See #2993
for more details.

The constraint on path fees was wrong in some rounding cases, so we
fix that, otherwise we would unnecessarily reject some payments.
This was found by testing blinded trampoline payments.
@t-bast t-bast requested a review from pm47 May 20, 2026 14:41
pm47
pm47 previously approved these changes May 20, 2026
@t-bast t-bast merged commit 0896d03 into master May 20, 2026
1 check passed
@t-bast t-bast deleted the fix-bolt12-hidden-fees branch May 20, 2026 15:04
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