Browse Source

reverted isSyncing to prevent unneeded resyncs

cl-refactor
arkpar 10 years ago
parent
commit
9830ffef43
  1. 10
      libethereum/EthereumHost.cpp

10
libethereum/EthereumHost.cpp

@ -729,15 +729,7 @@ bool EthereumHost::peerShouldGrabChain(EthereumPeer* _peer) const
bool EthereumHost::isSyncing_UNSAFE() const
{
/// We need actual peer information here to handle the case when we are the first ever peer on the network to mine.
/// I.e. on a new private network the first node mining has noone to sync with and should start block propogation immediately.
bool syncing = false;
foreachPeer([&](EthereumPeer* _p)
{
if (_p->m_asking != Asking::Nothing)
syncing = true;
});
return syncing;
return m_needSyncBlocks || m_needSyncHashes;
}
HashChainStatus EthereumHost::status()

Loading…
Cancel
Save