obscuren 10 년 전
부모
커밋
07955b3041
1개의 변경된 파일6개의 추가작업 그리고 8개의 파일을 삭제
  1. 6 8
      core/chain_manager.go

+ 6 - 8
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}