aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/blockchain.go5
1 files changed, 0 insertions, 5 deletions
diff --git a/core/blockchain.go b/core/blockchain.go
index 235c1f3da..57a881f38 100644
--- a/core/blockchain.go
+++ b/core/blockchain.go
@@ -796,11 +796,6 @@ func (bc *BlockChain) WriteBlockAndState(block *types.Block, receipts []*types.R
bc.mu.Lock()
defer bc.mu.Unlock()
- if bc.HasBlock(block.Hash(), block.NumberU64()) {
- log.Trace("Block existed", "hash", block.Hash())
- return
- }
-
localTd := bc.GetTd(bc.currentBlock.Hash(), bc.currentBlock.NumberU64())
externTd := new(big.Int).Add(block.Difficulty(), ptd)