Skip to content

Clarify recipient blinded path fee deduction#3010

Merged
thomash-acinq merged 1 commit intofee-less-blinded-routefrom
fee-less-blinded-route-bast
Feb 24, 2025
Merged

Clarify recipient blinded path fee deduction#3010
thomash-acinq merged 1 commit intofee-less-blinded-routefrom
fee-less-blinded-route-bast

Conversation

@t-bast
Copy link
Member

@t-bast t-bast commented Feb 17, 2025

We clarify that the previously named "hiddenFee" is actually the blinded path fee that is being paid by the recipient (by deducing it from the amount it plans on receiving). We thus rename variables and add docs.

We also revert the validation flow: instead of generating a payment part for that fee based on the difference between the paid amount and the onion value, we generate that payment part based on the blinded path fee we recorded in the path_id and validate that it matches what the payer is sending.

We revert some of the changes to the MultiPartHandler which aren't necessary and do some clean-up of some unused code paths.

This is a PR targeting #2993: I verified that this code compiles, but didn't update the tests.

We clarify that the previously named "hiddenFee" is actually the blinded
path fee that is being paid by the recipient (by deducing it from the
amount it plans on receiving). We thus rename variables and add docs.

We also revert the validation flow: instead of generating a payment part
for that fee based on the difference between the paid amount and the
onion value, we generate that payment part based on the blinded path fee
we recorded in the `path_id` and validate that it matches what the payer
is sending.

We revert some of the changes to the `MultiPartHandler` which aren't
necessary and do some clean-up of some unused code paths.
@t-bast t-bast requested a review from thomash-acinq February 17, 2025 14:49
@thomash-acinq thomash-acinq merged commit 874a19d into fee-less-blinded-route Feb 24, 2025
@t-bast t-bast deleted the fee-less-blinded-route-bast branch February 24, 2025 14:53
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