aboutsummaryrefslogtreecommitdiffstats
path: root/core/blockchain.go
diff options
context:
space:
mode:
authorWei-Ning Huang <w@dexon.org>2018-11-16 17:26:50 +0800
committerWei-Ning Huang <w@dexon.org>2019-04-09 21:32:53 +0800
commitf1f0e7d0b962c802124b2ed9123d3e9bd9cd9644 (patch)
tree29064c95d8e2639f277098e9a20a75f00e86ae68 /core/blockchain.go
parentdfd3d209ddb5c48ced410eb543ee9b17cffc575e (diff)
downloaddexon-f1f0e7d0b962c802124b2ed9123d3e9bd9cd9644.tar
dexon-f1f0e7d0b962c802124b2ed9123d3e9bd9cd9644.tar.gz
dexon-f1f0e7d0b962c802124b2ed9123d3e9bd9cd9644.tar.bz2
dexon-f1f0e7d0b962c802124b2ed9123d3e9bd9cd9644.tar.lz
dexon-f1f0e7d0b962c802124b2ed9123d3e9bd9cd9644.tar.xz
dexon-f1f0e7d0b962c802124b2ed9123d3e9bd9cd9644.tar.zst
dexon-f1f0e7d0b962c802124b2ed9123d3e9bd9cd9644.zip
core: fix light node synchronization issue (#30)
InsertChain() need to record the correct roundHeight mapping in order to process snapshotRoundHeight() governance method correctly.
Diffstat (limited to 'core/blockchain.go')
-rw-r--r--core/blockchain.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/blockchain.go b/core/blockchain.go
index 344a032a1..f8d9bca9e 100644
--- a/core/blockchain.go
+++ b/core/blockchain.go
@@ -1379,6 +1379,7 @@ func (bc *BlockChain) insertChain(chain types.Blocks, verifySeals bool) (int, []
"txs", len(block.Transactions()), "gas", block.GasUsed(), "uncles", len(block.Uncles()),
"root", block.Root())
events = append(events, ChainSideEvent{block})
+ panic("fork found")
}
blockInsertTimer.UpdateSince(start)
stats.processed++