Skip to content

Commit

Permalink
Merge pull request ethereum#278 from nguyenbatam/fix_err_externTd
Browse files Browse the repository at this point in the history
fix error externTd
  • Loading branch information
ngtuna committed Nov 12, 2018
2 parents 075e370 + 2e53774 commit 4758613
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/blockchain.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 4758613

Please sign in to comment.