Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remote failure updating routing hint #1675

Merged
merged 1 commit into from
Feb 1, 2021
Merged

Conversation

t-bast
Copy link
Member

@t-bast t-bast commented Jan 22, 2021

The routing hint we get in a Bolt 11 invoice may be obsolete when we attempt the payment: one of the nodes in the route may have updated his relay fees.

Since this affects a private channel that is not kept in the routing graph, we need to update the routing hints before injecting them in the router. This was already done in PaymentLifecycle with automatic retries, but when using MPP we retried in the MultiPartPaymentLifecycle instead of inside the PaymentLifecycle, so we need to handle routing hints updates there.

NB: don't forget to cherry-pick this commit on the android branch to ensure eclair-mobile gets this fix.

The routing hint we get in a Bolt 11 invoice may be obsolete when we attempt
the payment: one of the nodes in the route may have updated his relay fees.

Since this affects a private channel that is not kept in the routing graph,
we need to update the routing hints before injecting them in the router.
This was already done in `PaymentLifecycle` with automatic retries, but when
using MPP we retried in the `MultiPartPaymentLifecycle` instead of inside
the `PaymentLifecycle`, so we need to handle routing hints updates there.
@t-bast t-bast requested a review from pm47 January 22, 2021 09:18
@t-bast t-bast merged commit 0127ace into master Feb 1, 2021
@t-bast t-bast deleted the mpp-private-channel-fee-update branch February 1, 2021 10:40
t-bast added a commit that referenced this pull request Feb 1, 2021
The routing hint we get in a Bolt 11 invoice may be obsolete when we attempt
the payment: one of the nodes in the route may have updated his relay fees.

Since this affects a private channel that is not kept in the routing graph,
we need to update the routing hints before injecting them in the router.
This was already done in `PaymentLifecycle` with automatic retries, but when
using MPP we retried in the `MultiPartPaymentLifecycle` instead of inside
the `PaymentLifecycle`, so we need to handle routing hints updates there.
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