diff options
author | Péter Szilágyi <peterke@gmail.com> | 2017-10-04 00:59:53 +0800 |
---|---|---|
committer | Felix Lange <fjl@users.noreply.github.com> | 2017-10-04 00:59:53 +0800 |
commit | 629b5837e99ced620e71f5d750f2c1abc3537ed3 (patch) | |
tree | 68973620ced81aeb003f79789897ae97c0194119 | |
parent | c2d93ded35c8a2448e6cdb508bb742f5172ec218 (diff) | |
download | dexon-629b5837e99ced620e71f5d750f2c1abc3537ed3.tar.gz dexon-629b5837e99ced620e71f5d750f2c1abc3537ed3.tar.zst dexon-629b5837e99ced620e71f5d750f2c1abc3537ed3.zip |
core: revert invalid block dedup code (#15235)
-rw-r--r-- | core/blockchain.go | 5 |
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) |