|
|
@ -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() |
|
|
|