1
0
Fork 0
mirror of https://github.com/ACINQ/eclair.git synced 2025-02-26 07:22:48 +01:00
eclair/eclair-core/src
Pierre-Marie Padiou 52f671384e
Detect broken HTLC links at startup (#757)
If we have stopped eclair while it was forwarding HTLCs, it is possible
that we are in a state were an incoming HTLC
was committed by both sides, but we didn't have time to send
and/or sign the corresponding HTLC to the downstream node.

In that case, if we do nothing, the incoming HTLC will
eventually expire and we won't lose money, but the channel
will get closed, which is a major inconvenience.

This check will detect this and will allow us
to fast-fail HTLCs and thus preserve channels.
2019-01-04 17:34:50 +01:00
..
main Detect broken HTLC links at startup (#757) 2019-01-04 17:34:50 +01:00
test Detect broken HTLC links at startup (#757) 2019-01-04 17:34:50 +01:00