From 2e53774f676877d14173e37f9cccc291f2c298cc Mon Sep 17 00:00:00 2001 From: Nguyen Ba Tam Date: Mon, 12 Nov 2018 14:45:54 +0700 Subject: [PATCH] fix error externTd --- core/blockchain.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/blockchain.go b/core/blockchain.go index 906f70b190..096517f2db 100644 --- a/core/blockchain.go +++ b/core/blockchain.go @@ -893,7 +893,7 @@ func (bc *BlockChain) WriteBlockWithState(block *types.Block, receipts []*types. currentBlock := bc.CurrentBlock() //localTd := bc.GetTd(currentBlock.Hash(), currentBlock.NumberU64()) - //externTd := new(big.Int).Add(block.Difficulty(), ptd) + externTd := new(big.Int).Add(block.Difficulty(), ptd) // Irrelevant of the canonical status, write the block itself to the database if err := bc.hc.WriteTd(block.Hash(), block.NumberU64(), externTd); err != nil {