1
0
Fork 0
mirror of https://github.com/ACINQ/eclair.git synced 2025-02-25 15:09:53 +01:00
eclair/eclair-core
Pierre-Marie Padiou b33c9ecaac
Smarter relay logic (#1011)
When relaying a payment, we look in the onion to find the next
`shortChannelId`. But we may choose a different channel (to the same
node), because the requested channel may not have enough balance, of for
some other reasons, as permitted by the spec.

Currently we limit ourselves to only two attempts: one with a
"preferred" channel, and one with the originally requested channel if is
different from the preferred one. This has drawbacks, because if we have
multiple channels to the same node, we may not be able to relay a
payment if the "preferred" channel is currently unavailable (e.g.
because of an htlc in-flight value that is too high).

We now retry as many times as there are available channels, in our order
of preference, and if all fail, then we return a failure message for the
originally requested channel.
2019-06-03 19:10:14 +02:00
..
src Smarter relay logic (#1011) 2019-06-03 19:10:14 +02:00
eclair-cli Update bash autocompletion for eclair-cli (#983) 2019-05-09 09:45:47 +02:00
pom.xml Increase Service and EclairImpl test coverage (#1004) 2019-05-20 14:22:09 +02:00