mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 15:16:43 +00:00
Fixes
This commit is contained in:
commit
dcb6cabb77
1 changed files with 5 additions and 0 deletions
|
|
@ -1749,6 +1749,11 @@ func (bc *BlockChain) insertChain(chain types.Blocks, verifySeals bool) (int, er
|
|||
defer func() {
|
||||
if lastCanon != nil && bc.CurrentBlock().Hash() == lastCanon.Hash() {
|
||||
bc.chainHeadFeed.Send(ChainHeadEvent{lastCanon})
|
||||
|
||||
bc.chain2HeadFeed.Send(Chain2HeadEvent{
|
||||
Type: "head",
|
||||
NewChain: []*types.Block{lastCanon},
|
||||
})
|
||||
}
|
||||
}()
|
||||
// Start the parallel header verifier
|
||||
|
|
|
|||
Loading…
Reference in a new issue