From ecb451efe7504fca2bcb579304976df954137258 Mon Sep 17 00:00:00 2001 From: Gav Wood Date: Thu, 28 Aug 2014 22:04:52 +0200 Subject: [PATCH] Another minor fix. --- libethereum/EthereumHost.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libethereum/EthereumHost.cpp b/libethereum/EthereumHost.cpp index 18c6535b8..176c7465c 100644 --- a/libethereum/EthereumHost.cpp +++ b/libethereum/EthereumHost.cpp @@ -383,7 +383,7 @@ h256Set EthereumHost::neededBlocks(h256Set const& _exclude) m_blocksNeeded.erase(it); } } - else + if (!ret.size()) for (auto i = m_blocksOnWay.begin(); ret.size() < c_maxBlocksAsk && i != m_blocksOnWay.end() && !_exclude.count(*i); ++i) ret.insert(*i);