core: revert invalid block dedup code (#15235)

This commit is contained in:
Péter Szilágyi 2017-10-03 19:59:53 +03:00 committed by Felix Lange
parent c2d93ded35
commit 629b5837e9
1 changed files with 0 additions and 5 deletions

View File

@ -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)