diff options
author | obscuren <geffobscura@gmail.com> | 2015-03-08 08:09:34 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-03-08 08:09:34 +0800 |
commit | 07955b30419a26b9b213f71955a02a49995dc0e3 (patch) | |
tree | f7f02021a250c42aba8f739d69871d6f64cffc21 /core/chain_manager.go | |
parent | 405c0ca4b036c1fa7a4d2cf3798b000d00d03455 (diff) | |
parent | 94e543bc398efbb5c712b6e4cb48d8a57eb3400d (diff) | |
download | go-tangerine-07955b30419a26b9b213f71955a02a49995dc0e3.tar go-tangerine-07955b30419a26b9b213f71955a02a49995dc0e3.tar.gz go-tangerine-07955b30419a26b9b213f71955a02a49995dc0e3.tar.bz2 go-tangerine-07955b30419a26b9b213f71955a02a49995dc0e3.tar.lz go-tangerine-07955b30419a26b9b213f71955a02a49995dc0e3.tar.xz go-tangerine-07955b30419a26b9b213f71955a02a49995dc0e3.tar.zst go-tangerine-07955b30419a26b9b213f71955a02a49995dc0e3.zip |
merge
Diffstat (limited to 'core/chain_manager.go')
-rw-r--r-- | core/chain_manager.go | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/core/chain_manager.go b/core/chain_manager.go index 7ee182734..9dc41f421 100644 --- a/core/chain_manager.go +++ b/core/chain_manager.go @@ -440,14 +440,12 @@ func (self *ChainManager) InsertChain(chain types.Blocks) error { self.setTotalDifficulty(td) self.insert(block) - /* - jsonlogger.LogJson(&logger.EthChainNewHead{ - BlockHash: ethutil.Bytes2Hex(block.Hash()), - BlockNumber: block.Number(), - ChainHeadHash: ethutil.Bytes2Hex(cblock.Hash()), - BlockPrevHash: ethutil.Bytes2Hex(block.ParentHash()), - }) - */ + jsonlogger.LogJson(&logger.EthChainNewHead{ + BlockHash: ethutil.Bytes2Hex(block.Hash()), + BlockNumber: block.Number(), + ChainHeadHash: ethutil.Bytes2Hex(cblock.Hash()), + BlockPrevHash: ethutil.Bytes2Hex(block.ParentHash()), + }) self.setTransState(state.New(block.Root(), self.stateDb)) queue[i] = ChainEvent{block} |