]> git.bitcoin.ninja Git - rust-lightning/commit
Do not panic on early tx broadcasts in fuzzing 2022-06-fix-fuzz-nonbug
authorMatt Corallo <git@bluematt.me>
Thu, 2 Jun 2022 03:37:16 +0000 (03:37 +0000)
committerMatt Corallo <git@bluematt.me>
Thu, 2 Jun 2022 03:39:42 +0000 (03:39 +0000)
commit47045b0ac87c7a61b8b4e3c82a2d5c741df28de4
treed7e37a99607dbbdb24cbd07b79704d90f4313518
parent0b7700830b440613d66a4494213b8bbfa63b8f68
Do not panic on early tx broadcasts in fuzzing

If the user broadcasts a funding transaction before the
counterparty provides a `funding_signed` we will panic in
`check_get_channel_ready`. This is expected - the user did
something which may lead to loss of funds, and we *really* need to
let them know.

However, the fuzzer can do this and we shouldn't treat it as a bug,
its a totally expected panic. Thus, we disable the panic in fuzz.

Thanks to Chaincode for providing fuzzing resources which managed
to hit this panic.
lightning/src/ln/channel.rs