]> git.bitcoin.ninja Git - rust-lightning/commit
Stop failing back HTLCs on peer disconnection
authorMatt Corallo <git@bluematt.me>
Fri, 20 Nov 2020 20:49:53 +0000 (15:49 -0500)
committerMatt Corallo <git@bluematt.me>
Fri, 21 May 2021 15:10:45 +0000 (15:10 +0000)
commitb9a1db5ad64e45c4440e1dcfae8081f781ff987a
tree9b0f3d9c30a9a785b30c149480569c3425416521
parent8acdbaf2a450e93d77defde9164116079f8cb9e7
Stop failing back HTLCs on peer disconnection

Previously, if we got disconnected from a peer while there were
HTLCs pending forwarding in the holding cell, we'd clear them and
fail them all backwards. This is largely fine, but since we now
have support for handling such HTLCs on reconnect, we might as
well not, instead relying on our timeout logic to fail them
backwards if it takes too long to forward them.
lightning/src/ln/channel.rs
lightning/src/ln/channelmanager.rs