]> git.bitcoin.ninja Git - rust-lightning/commit
Fix crash when a claim tx has some non-witness inputs. 2020-01-fix-tx-log
authorMatt Corallo <git@bluematt.me>
Mon, 13 Jan 2020 18:43:54 +0000 (13:43 -0500)
committerMatt Corallo <git@bluematt.me>
Mon, 13 Jan 2020 18:58:44 +0000 (13:58 -0500)
commit6596efafbeee30d024177bcfc6410ae87293b431
treef2e51922e3c1e182b68ceb385b2b87d332622da3
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