]> git.bitcoin.ninja Git - rust-lightning/commit
Document exactly our CLTV sanitization policy for final incoming HTLCs
authorAntoine Riard <ariard@student.42.fr>
Fri, 10 Apr 2020 01:51:29 +0000 (21:51 -0400)
committerMatt Corallo <git@bluematt.me>
Thu, 16 Apr 2020 01:31:09 +0000 (21:31 -0400)
commit709220f805af871e2690b66c73f25b6b205aaca7
tree815d7cb271f48e235e22fb5a56bb25f032859de8
parent8cc0919f9d438ab77865cd8bb7db872795a21648
Document exactly our CLTV sanitization policy for final incoming HTLCs

We want to avoid a third-party channel closure, where a random node
by sending us a payment expiring at current height, would trigger our
onchain logic to close the channel due to a near-expiration.

PaymentReceived and unknown HTLC cancellation must happen before
LATENCY_GRACE_PERIOD_BLOCKS.
lightning/src/ln/channel.rs
lightning/src/ln/channelmanager.rs
lightning/src/util/events.rs