]> git.bitcoin.ninja Git - rust-lightning/commit
Work around LND bug 6039
authorMatt Corallo <git@bluematt.me>
Thu, 17 Aug 2023 22:34:24 +0000 (22:34 +0000)
committerMatt Corallo <git@bluematt.me>
Thu, 17 Aug 2023 22:47:01 +0000 (22:47 +0000)
commitbb7c4d1853fe539de946cad975001593c2f845fa
treefe03151294a56f827482005626b20f06f8f7269c
parentd4ad826c6eb85ea91ec7aa2cd4545fa2139a4462
Work around LND bug 6039

LND hasn't properly handled shutdown messages ever, and
force-closes any time we send one while HTLCs are still present.
The issue is tracked at
https://github.com/lightningnetwork/lnd/issues/6039 and has had
multiple patches to fix it but none so far have managed to land
upstream. The issue appears to be very low priority for the LND
team despite being marked "P1".

We're not going to bother handling this in a sensible way, instead
simply repeated the Shutdown message on repeat until morale
improves.
lightning/src/ln/channel.rs
lightning/src/ln/channelmanager.rs
lightning/src/ln/shutdown_tests.rs