From 5430770b6851a18417f6b2629c9167a5aa38baa5 Mon Sep 17 00:00:00 2001 From: sfan5 Date: Mon, 11 May 2020 20:22:32 +0200 Subject: [PATCH] Fix constant re-queueing of emerges that will always be unsuccessful --- src/clientiface.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/clientiface.cpp b/src/clientiface.cpp index 4f954342a..602a44c90 100644 --- a/src/clientiface.cpp +++ b/src/clientiface.cpp @@ -344,10 +344,10 @@ void RemoteClient::GetNextBlocks ( } /* - If block has been marked to not exist on disk (dummy) - and generating new ones is not wanted, skip block. + If block has been marked to not exist on disk (dummy) or is + not generated and generating new ones is not wanted, skip block. */ - if (!generate && surely_not_found_on_disk) { + if (!generate && (surely_not_found_on_disk || block_is_invalid)) { // get next one. continue; }