Browse Source

Minor fix.

cl-refactor
Gav Wood 10 years ago
parent
commit
2f5c1e742f
  1. 2
      libethereum/EthereumHost.cpp

2
libethereum/EthereumHost.cpp

@ -374,7 +374,7 @@ h256Set EthereumHost::neededBlocks(h256Set const& _exclude)
if (m_blocksNeeded.size())
{
int s = m_blocksNeeded.size() - 1;
for (; ret.size() < c_maxBlocksAsk && s < m_blocksNeeded.size(); --s)
for (; ret.size() < c_maxBlocksAsk && s < (int)m_blocksNeeded.size() && s >= 0; --s)
if (!_exclude.count(m_blocksNeeded[s]))
{
auto it = m_blocksNeeded.begin() + s;

Loading…
Cancel
Save