From: Matt Corallo Date: Wed, 21 Apr 2021 01:35:12 +0000 (+0000) Subject: [fuzz] Fix hang due to double-lock in full_stack_target X-Git-Tag: v0.0.98~10^2~2 X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=b780cbdbfced45d61e17274c755207e2ca628e34;p=rust-lightning [fuzz] Fix hang due to double-lock in full_stack_target --- diff --git a/fuzz/src/full_stack.rs b/fuzz/src/full_stack.rs index 0613d3a0a..f85602552 100644 --- a/fuzz/src/full_stack.rs +++ b/fuzz/src/full_stack.rs @@ -543,7 +543,7 @@ pub fn do_test(data: &[u8], logger: &Arc) { } }, 11 => { - let mut txn = broadcast.txn_broadcasted.lock().unwrap(); + let mut txn = broadcast.txn_broadcasted.lock().unwrap().split_off(0); if !txn.is_empty() { loss_detector.connect_block(&txn[..]); for _ in 2..100 {