aboutsummaryrefslogtreecommitdiffstats
path: root/core/blockchain.go
diff options
context:
space:
mode:
authorJimmy Hu <jimmy.hu@dexon.org>2019-03-27 13:17:22 +0800
committerWei-Ning Huang <w@byzantine-lab.io>2019-06-13 18:11:44 +0800
commit0e51a6d76ea35124af30fc81017ea8ac3775c54c (patch)
treeab1312a92bfcecb554dab45ff2d4ca5a4be3dac7 /core/blockchain.go
parentc9f40d5e37d64dca63a0d29870e1db3916de1e98 (diff)
downloadgo-tangerine-0e51a6d76ea35124af30fc81017ea8ac3775c54c.tar
go-tangerine-0e51a6d76ea35124af30fc81017ea8ac3775c54c.tar.gz
go-tangerine-0e51a6d76ea35124af30fc81017ea8ac3775c54c.tar.bz2
go-tangerine-0e51a6d76ea35124af30fc81017ea8ac3775c54c.tar.lz
go-tangerine-0e51a6d76ea35124af30fc81017ea8ac3775c54c.tar.xz
go-tangerine-0e51a6d76ea35124af30fc81017ea8ac3775c54c.tar.zst
go-tangerine-0e51a6d76ea35124af30fc81017ea8ac3775c54c.zip
core: fix finalize logic (#302)
Diffstat (limited to 'core/blockchain.go')
-rw-r--r--core/blockchain.go4
1 files changed, 0 insertions, 4 deletions
diff --git a/core/blockchain.go b/core/blockchain.go
index 7a695ac38..3f0e7203e 100644
--- a/core/blockchain.go
+++ b/core/blockchain.go
@@ -1827,10 +1827,6 @@ func (bc *BlockChain) ProcessEmptyBlock(block *types.Block) (*common.Hash, error
header.ParentHash = parentBlock.Hash()
newBlock, err := bc.engine.Finalize(bc, header, currentState, nil, nil, nil)
- if header.Root != parentBlock.Root() {
- return nil, fmt.Errorf("empty block state root must same as parent")
- }
-
root := newBlock.Root()
if _, ok := bc.GetRoundHeight(newBlock.Round()); !ok {
bc.storeRoundHeight(newBlock.Round(), newBlock.NumberU64())