aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-05-04 03:44:44 +0800
committerobscuren <geffobscura@gmail.com>2015-05-04 03:49:19 +0800
commit37770ed0d37f9c8ece37fecd443e7c70e915a48a (patch)
tree0e5664b1fb920993d6c61727cb1cc7508abe6810
parent1470b22e9051f48fbbeb136cc4c0be0877e9f9a7 (diff)
downloaddexon-37770ed0d37f9c8ece37fecd443e7c70e915a48a.tar
dexon-37770ed0d37f9c8ece37fecd443e7c70e915a48a.tar.gz
dexon-37770ed0d37f9c8ece37fecd443e7c70e915a48a.tar.bz2
dexon-37770ed0d37f9c8ece37fecd443e7c70e915a48a.tar.lz
dexon-37770ed0d37f9c8ece37fecd443e7c70e915a48a.tar.xz
dexon-37770ed0d37f9c8ece37fecd443e7c70e915a48a.tar.zst
dexon-37770ed0d37f9c8ece37fecd443e7c70e915a48a.zip
core: added unix timestamp to debug output for block proc
-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 bde5a71d7..29830188e 100644
--- a/core/chain_manager.go
+++ b/core/chain_manager.go
@@ -604,7 +604,7 @@ func (self *ChainManager) InsertChain(chain types.Blocks) (int, error) {
queueEvent.canonicalCount++
if glog.V(logger.Debug) {
- glog.Infof("inserted block #%d (%d TXs %d UNCs) (%x...)\n", block.Number(), len(block.Transactions()), len(block.Uncles()), block.Hash().Bytes()[0:4])
+ glog.Infof("[%v] inserted block #%d (%d TXs %d UNCs) (%x...)\n", time.Now().UnixNano(), block.Number(), len(block.Transactions()), len(block.Uncles()), block.Hash().Bytes()[0:4])
}
} else {
if glog.V(logger.Detail) {