aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2017-10-04 00:59:53 +0800
committerFelix Lange <fjl@users.noreply.github.com>2017-10-04 00:59:53 +0800
commit629b5837e99ced620e71f5d750f2c1abc3537ed3 (patch)
tree68973620ced81aeb003f79789897ae97c0194119 /core
parentc2d93ded35c8a2448e6cdb508bb742f5172ec218 (diff)
downloadgo-tangerine-629b5837e99ced620e71f5d750f2c1abc3537ed3.tar
go-tangerine-629b5837e99ced620e71f5d750f2c1abc3537ed3.tar.gz
go-tangerine-629b5837e99ced620e71f5d750f2c1abc3537ed3.tar.bz2
go-tangerine-629b5837e99ced620e71f5d750f2c1abc3537ed3.tar.lz
go-tangerine-629b5837e99ced620e71f5d750f2c1abc3537ed3.tar.xz
go-tangerine-629b5837e99ced620e71f5d750f2c1abc3537ed3.tar.zst
go-tangerine-629b5837e99ced620e71f5d750f2c1abc3537ed3.zip
core: revert invalid block dedup code (#15235)
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)