From b780cbdbfced45d61e17274c755207e2ca628e34 Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Wed, 21 Apr 2021 01:35:12 +0000 Subject: [PATCH] [fuzz] Fix hang due to double-lock in full_stack_target --- fuzz/src/full_stack.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- 2.39.5