aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorJimmy Hu <jimmy.hu@dexon.org>2019-03-27 13:17:22 +0800
committerWei-Ning Huang <w@dexon.org>2019-04-09 21:32:58 +0800
commit4e0fc985b66e584177572481dfe9e21858a7711c (patch)
tree8181f47271e60a324e3753d8c2cab64366c48479 /core
parent78b707cebf4b3bc101e0793f14f9cac7323bff04 (diff)
downloaddexon-4e0fc985b66e584177572481dfe9e21858a7711c.tar
dexon-4e0fc985b66e584177572481dfe9e21858a7711c.tar.gz
dexon-4e0fc985b66e584177572481dfe9e21858a7711c.tar.bz2
dexon-4e0fc985b66e584177572481dfe9e21858a7711c.tar.lz
dexon-4e0fc985b66e584177572481dfe9e21858a7711c.tar.xz
dexon-4e0fc985b66e584177572481dfe9e21858a7711c.tar.zst
dexon-4e0fc985b66e584177572481dfe9e21858a7711c.zip
core: fix finalize logic (#302)
Diffstat (limited to 'core')
-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())