Fix constant re-queueing of emerges that will always be unsuccessful

This commit is contained in:
sfan5 2020-05-11 20:22:32 +02:00
parent a9d6be8b6f
commit 5430770b68

@ -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;
}