aboutsummaryrefslogtreecommitdiffstats
path: root/eth
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2015-05-26 21:10:28 +0800
committerPéter Szilágyi <peterke@gmail.com>2015-05-26 21:10:28 +0800
commit3083ec5e32b0f022af03f5420d717bddbaa8e71c (patch)
tree388bd4a47a89bbb908b76dceaa1db1a1e0cef517 /eth
parentd74ee40c86fed3a48d88de1094efc0a2f464b659 (diff)
downloaddexon-3083ec5e32b0f022af03f5420d717bddbaa8e71c.tar.gz
dexon-3083ec5e32b0f022af03f5420d717bddbaa8e71c.tar.zst
dexon-3083ec5e32b0f022af03f5420d717bddbaa8e71c.zip
eth/downloader: silence "Added N blocks from..." if N == 0
Diffstat (limited to 'eth')
-rw-r--r--eth/downloader/downloader.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/eth/downloader/downloader.go b/eth/downloader/downloader.go
index 0634baaed..421c336f2 100644
--- a/eth/downloader/downloader.go
+++ b/eth/downloader/downloader.go
@@ -415,7 +415,7 @@ out:
peer.Demote()
break
}
- if glog.V(logger.Debug) {
+ if glog.V(logger.Debug) && len(blockPack.blocks) > 0 {
glog.Infof("Added %d blocks from: %s\n", len(blockPack.blocks), blockPack.peerId)
}
// Promote the peer and update it's idle state