Time out incoming HTLCs when we reach cltv_expiry (+ test)
authorMatt Corallo <git@bluematt.me>
Thu, 9 Jan 2020 19:09:25 +0000 (14:09 -0500)
committerMatt Corallo <git@bluematt.me>
Fri, 24 Apr 2020 18:28:50 +0000 (14:28 -0400)
commitc9483c69081dc6818ed57e2ca3212010bb132dc7
tree078d5e358f309ef31125807ffa0dce2d37e78b65
parentf0e9524e6d34d6a33aeb953ef0f7c1cbb12ef034
Time out incoming HTLCs when we reach cltv_expiry (+ test)

We only do this for incoming HTLCs directly as we rely on channel
closure and HTLC-Timeout broadcast to fail any HTLCs which we
relayed onwards where our next-hop doesn't update_fail in time.
lightning/src/ln/channelmanager.rs
lightning/src/ln/functional_test_utils.rs
lightning/src/ln/functional_tests.rs
lightning/src/util/events.rs