Skip to content

Commit

Permalink
Fix constant re-queueing of emerges that will always be unsuccessful
Browse files Browse the repository at this point in the history
  • Loading branch information
sfan5 committed May 24, 2020
1 parent a9d6be8 commit 5430770
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/clientiface.cpp
Expand Up @@ -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;
}
Expand Down

0 comments on commit 5430770

Please sign in to comment.