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>
Sat, 25 Jan 2020 22:12:08 +0000 (17:12 -0500)
commit87372e9a0eefd175abdabb60b9b78c70d60595fd
tree0cf5e539fa804bad0cc7b7583a3001c1ff85d3b3
parentf7ef025de352cb1126ded379234d772cb6175afe
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_tests.rs
lightning/src/util/events.rs