From 2556a1e3835cc8ba71eca27182bca4a3fa4b4083 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Wed, 22 Apr 2020 20:06:12 +0000 Subject: [PATCH] I'm stupid though --- src/block.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/block.rs b/src/block.rs index 6c785f8..bc3e929 100644 --- a/src/block.rs +++ b/src/block.rs @@ -280,8 +280,10 @@ impl BlockManager { let mut need_nodes = vec![]; for (node, needed) in who.into_iter().zip(who_needs.iter()) { match needed { - Ok(Message::NeedBlockReply(true)) => { - need_nodes.push(node); + Ok(Message::NeedBlockReply(needed)) => { + if *needed { + need_nodes.push(node); + } } Err(e) => { return Err(Error::Message(format!(