From 40f16107105cf823f249d0e9154d1ecc747043ba Mon Sep 17 00:00:00 2001 From: Evgeny Danilenko <6655321@bk.ru> Date: Wed, 11 Dec 2019 14:54:07 +0300 Subject: [PATCH] Fix mining after geth 1.9.9 (#255) * restore chain head event * fmt * restore init --- core/blockchain.go | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/core/blockchain.go b/core/blockchain.go index 960966a72..f0cdba0ab 100644 --- a/core/blockchain.go +++ b/core/blockchain.go @@ -1335,11 +1335,9 @@ func (bc *BlockChain) writeBlockWithState(block *types.Block, receipts []*types. // canonicial blocks. Avoid firing too much ChainHeadEvents, // we will fire an accumulated ChainHeadEvent and disable fire // event here. - - // restore if fast sync is needed - // if emitHeadEvent { - // bc.chainHeadFeed.Send(ChainHeadEvent{Block: block}) - // } + if emitHeadEvent { + bc.chainHeadFeed.Send(ChainHeadEvent{Block: block}) + } } else { bc.chainSideFeed.Send(ChainSideEvent{Block: block}) }