From d3b42295ee1e6bb079ae70993eb1deb2bb5c76cd Mon Sep 17 00:00:00 2001 From: arkpar Date: Tue, 2 Jun 2015 13:47:36 +0200 Subject: [PATCH] comments for isSyncing --- libethereum/EthereumHost.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libethereum/EthereumHost.cpp b/libethereum/EthereumHost.cpp index ddb6bdc52..564e37315 100644 --- a/libethereum/EthereumHost.cpp +++ b/libethereum/EthereumHost.cpp @@ -619,6 +619,8 @@ 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) {