From 629b5837e99ced620e71f5d750f2c1abc3537ed3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A9ter=20Szil=C3=A1gyi?= Date: Tue, 3 Oct 2017 19:59:53 +0300 Subject: core: revert invalid block dedup code (#15235) --- core/blockchain.go | 5 ----- 1 file changed, 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) -- cgit v1.2.3