mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-14 14:58:21 +00:00
Fix mining after geth 1.9.9 (#255)
* restore chain head event * fmt * restore init
This commit is contained in:
parent
5b4f352acb
commit
40f1610710
@ -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})
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user