Stop failing back HTLCs on temporary monitor udpate failures
authorMatt Corallo <git@bluematt.me>
Fri, 20 Nov 2020 20:49:53 +0000 (15:49 -0500)
committerMatt Corallo <git@bluematt.me>
Mon, 1 Mar 2021 02:03:18 +0000 (21:03 -0500)
commit6e865ea15d9d176d48df2838eba8b24e1be35765
treea181288571ab51fab0836cadf30d08b5b2c1ee5a
parent49c7b01e3228f5d9493a0d2e50973b3d1cee111b
Stop failing back HTLCs on temporary monitor udpate failures

Previously, if we get a temporary monitor update failure while
there were HTLCs pending forwarding in the holding cell, we'd clear
them and fail them all backwards. This makes sense if temporary
failures are rare, but in an async environment, temporary monitor
update failures may be the normal case. In such a world, this
results in potentially a lot of spurious HTLC forwarding failures
(which is the topic of #661).
lightning/src/ln/channel.rs
lightning/src/ln/channelmanager.rs