From a3ca3ec50d1058a45368918fe8313cabadf3bb72 Mon Sep 17 00:00:00 2001 From: Paul Hauner Date: Mon, 1 Apr 2019 15:32:04 +1100 Subject: [PATCH] Break block proc. loop if we get a bad block --- beacon_node/network/src/sync/simple_sync.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/beacon_node/network/src/sync/simple_sync.rs b/beacon_node/network/src/sync/simple_sync.rs index e7ef301bb..841ae37ac 100644 --- a/beacon_node/network/src/sync/simple_sync.rs +++ b/beacon_node/network/src/sync/simple_sync.rs @@ -726,6 +726,7 @@ impl SimpleSync { "reason" => format!("{:?}", outcome), ); network.disconnect(sender, GoodbyeReason::Fault); + break; } // If this results to true, the item will be removed from the queue.