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

Better handling of TemporaryChannelFailure #1726

Merged
merged 1 commit into from
Mar 10, 2021

Conversation

t-bast
Copy link
Member

@t-bast t-bast commented Mar 9, 2021

When a node returns a TemporaryChannelFailure, we should ignore this channel when retrying. In some cases (such as channels from routing hints) this was not correctly handled.

We have a mechanism to send a node-wise exclusion to the Router (only for ChannelDisabled) but I think having a ceinture/bretelles solution makes sense.

Fixes #1725

When a node returns a TemporaryChannelFailure, we should ignore this channel
when retrying. In some cases (such as channels from routing hints) this was
not correctly handled.

Fixes #1725
@t-bast t-bast requested a review from pm47 March 9, 2021 11:48
@codecov-io
Copy link

Codecov Report

Merging #1726 (06f1b30) into master (ea8f940) will increase coverage by 0.00%.
The diff coverage is 92.30%.

@@           Coverage Diff           @@
##           master    #1726   +/-   ##
=======================================
  Coverage   86.29%   86.30%           
=======================================
  Files         151      151           
  Lines       11717    11723    +6     
  Branches      486      484    -2     
=======================================
+ Hits        10111    10117    +6     
  Misses       1606     1606           
Impacted Files Coverage Δ
.../scala/fr/acinq/eclair/payment/PaymentEvents.scala 97.61% <88.88%> (-2.39%) ⬇️
...r/acinq/eclair/payment/send/PaymentLifecycle.scala 92.90% <100.00%> (+0.05%) ⬆️
...main/scala/fr/acinq/eclair/io/PeerConnection.scala 82.97% <0.00%> (-0.43%) ⬇️
...cala/fr/acinq/eclair/payment/relay/NodeRelay.scala 95.41% <0.00%> (+1.52%) ⬆️

@t-bast t-bast merged commit 2772138 into master Mar 10, 2021
@t-bast t-bast deleted the routing-hint-channel-unavailable branch March 10, 2021 09:49
tompro pushed a commit to tompro/eclair that referenced this pull request Mar 21, 2021
When a node returns a TemporaryChannelFailure, we should ignore this channel
when retrying. In some cases (such as channels from routing hints) this was
not correctly handled.

Fixes ACINQ#1725
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.

phoenix fails to pay invoice if any routing hint has low receive-capacity
3 participants