Skip to content

Commit 629b583

Browse files
karalabefjl
authored andcommitted
core: revert invalid block dedup code (#15235)
1 parent c2d93de commit 629b583

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

core/blockchain.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -796,11 +796,6 @@ func (bc *BlockChain) WriteBlockAndState(block *types.Block, receipts []*types.R
796796
bc.mu.Lock()
797797
defer bc.mu.Unlock()
798798

799-
if bc.HasBlock(block.Hash(), block.NumberU64()) {
800-
log.Trace("Block existed", "hash", block.Hash())
801-
return
802-
}
803-
804799
localTd := bc.GetTd(bc.currentBlock.Hash(), bc.currentBlock.NumberU64())
805800
externTd := new(big.Int).Add(block.Difficulty(), ptd)
806801

0 commit comments

Comments
 (0)