]> git.bitcoin.ninja Git - rust-lightning/commit
Bound incoming HTLC witnessScript to min/max limits
authorAntoine Riard <ariard@student.42.fr>
Tue, 14 Jan 2020 18:47:01 +0000 (13:47 -0500)
committerAntoine Riard <ariard@student.42.fr>
Fri, 17 Jan 2020 21:39:31 +0000 (16:39 -0500)
commitfbc7885a97ce3807e390ee5427908d7ac069042a
tree90b024559007a8ea684b03fc6d9a7e6daafde5e7
parent1a870fe8aae5fcbb0f974d47f4c6b4f531ffa3a9
Bound incoming HTLC witnessScript to min/max limits

Fix a crash where previously we weren't able to detect any accepted
HTLC if its witness-encoded cltv expiry was different from expected
ACCEPTED_HTLC_SCRIPT_WEIGHT. This should work for any cltv expiry
included between 0 and 16777216 on mainnet, testnet and regtest.
lightning/src/ln/chan_utils.rs
lightning/src/ln/channel.rs
lightning/src/ln/channelmonitor.rs
lightning/src/ln/functional_test_utils.rs
lightning/src/ln/functional_tests.rs
lightning/src/util/macro_logger.rs