Browse Source

use all peers for re-syncing

cl-refactor
arkpar 10 years ago
parent
commit
8605b8c9ce
  1. 4
      libethereum/EthereumHost.cpp

4
libethereum/EthereumHost.cpp

@ -367,7 +367,7 @@ void EthereumHost::onPeerHashes(EthereumPeer* _peer, h256s const& _hashes, bool
if (_complete) if (_complete)
{ {
m_needSyncBlocks = true; m_needSyncBlocks = true;
continueSync(_peer); continueSync();
} }
else if (syncByNumber && m_hashMan.isComplete()) else if (syncByNumber && m_hashMan.isComplete())
{ {
@ -540,7 +540,7 @@ void EthereumHost::onPeerNewBlock(EthereumPeer* _peer, RLP const& _r)
_peer->m_knownBlocks.insert(h); _peer->m_knownBlocks.insert(h);
if (sync) if (sync)
continueSync(_peer); continueSync();
} }
} }

Loading…
Cancel
Save