]> git.bitcoin.ninja Git - rust-lightning/commit
Fix crash when a claim tx has some non-witness inputs.
authorMatt Corallo <git@bluematt.me>
Mon, 13 Jan 2020 18:43:54 +0000 (13:43 -0500)
committerAntoine Riard <ariard@student.42.fr>
Fri, 17 Jan 2020 21:26:48 +0000 (16:26 -0500)
commit1a870fe8aae5fcbb0f974d47f4c6b4f531ffa3a9
treed57addd818cf9183f2255a485e9a95da212152ea
parentf8b06ec82c491efee2595bfcf95a68b027567d70
Fix crash when a claim tx has some non-witness inputs.

The logger which decides what to refer to an on-chain claim tx was
assuming that all inputs would have a witness. While this was fine
for the one-input case, it broke the fuzzer which was connecting a
consensus-invalid transaction. Further, in the case we have multiple
inputs, some may not have a witness, which we shouldn't crash on.

This fixes 9df0250dbbad7449e3ec8f90532ce9197eb31997.
lightning/src/util/macro_logger.rs