From f1f0e7d0b962c802124b2ed9123d3e9bd9cd9644 Mon Sep 17 00:00:00 2001 From: Wei-Ning Huang Date: Fri, 16 Nov 2018 17:26:50 +0800 Subject: core: fix light node synchronization issue (#30) InsertChain() need to record the correct roundHeight mapping in order to process snapshotRoundHeight() governance method correctly. --- core/blockchain.go | 1 + 1 file changed, 1 insertion(+) (limited to 'core/blockchain.go') 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++ -- cgit v1.2.3