aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-05-03 20:09:50 +0800
committerobscuren <geffobscura@gmail.com>2015-05-03 20:09:50 +0800
commitc5b8acbaf0ae662a6b72568d155880d28d1034a1 (patch)
treec2a42c1e45d3e75ac6d0d0da1e92b96e933d345d
parent25bc88113f8d78a265e03be670a4c9ae4ee0bdbe (diff)
downloaddexon-c5b8acbaf0ae662a6b72568d155880d28d1034a1.tar
dexon-c5b8acbaf0ae662a6b72568d155880d28d1034a1.tar.gz
dexon-c5b8acbaf0ae662a6b72568d155880d28d1034a1.tar.bz2
dexon-c5b8acbaf0ae662a6b72568d155880d28d1034a1.tar.lz
dexon-c5b8acbaf0ae662a6b72568d155880d28d1034a1.tar.xz
dexon-c5b8acbaf0ae662a6b72568d155880d28d1034a1.tar.zst
dexon-c5b8acbaf0ae662a6b72568d155880d28d1034a1.zip
core: print ignored blocks
-rw-r--r--core/chain_manager.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/chain_manager.go b/core/chain_manager.go
index 4dfa67b8d..bde5a71d7 100644
--- a/core/chain_manager.go
+++ b/core/chain_manager.go
@@ -622,7 +622,7 @@ func (self *ChainManager) InsertChain(chain types.Blocks) (int, error) {
}
- if (stats.queued > 0 || stats.processed > 0) && bool(glog.V(logger.Info)) {
+ if (stats.queued > 0 || stats.processed > 0 || stats.ignored > 0) && bool(glog.V(logger.Info)) {
tend := time.Since(tstart)
start, end := chain[0], chain[len(chain)-1]
glog.Infof("imported %d block(s) (%d queued %d ignored) in %v. #%v [%x / %x]\n", stats.processed, stats.queued, stats.ignored, tend, end.Number(), start.Hash().Bytes()[:4], end.Hash().Bytes()[:4])