Time out incoming HTLCs when we reach cltv_expiry (+ test) 2018-11-fail-inbound
authorMatt Corallo <git@bluematt.me>
Sun, 4 Nov 2018 21:04:07 +0000 (08:04 +1100)
committerMatt Corallo <git@bluematt.me>
Thu, 15 Nov 2018 17:24:11 +0000 (12:24 -0500)
commit0a4821befa39218c0c594128ad9f92a549e1d4e7
treeacafd36304e0f1acc5f3bad216396e2634ffd3aa
parent3c44d6beca2d5c3c50a8454d072ef54f735d5000
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.
src/ln/channel.rs
src/ln/channelmanager.rs
src/util/events.rs