mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-16 13:06:40 +00:00
eth/downloader: silence "Added N blocks from..." if N == 0
This commit is contained in:
parent
d74ee40c86
commit
3083ec5e32
1 changed files with 1 additions and 1 deletions
|
|
@ -415,7 +415,7 @@ out:
|
||||||
peer.Demote()
|
peer.Demote()
|
||||||
break
|
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)
|
glog.Infof("Added %d blocks from: %s\n", len(blockPack.blocks), blockPack.peerId)
|
||||||
}
|
}
|
||||||
// Promote the peer and update it's idle state
|
// Promote the peer and update it's idle state
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue