Skip to content

Commit

Permalink
core/blockchain: remove block from futureBlocks on error (#19763)
Browse files Browse the repository at this point in the history
  • Loading branch information
ywzqwwt authored and holiman committed Sep 26, 2019
1 parent ad03d98 commit 1a6ef5a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/blockchain.go
Original file line number Diff line number Diff line change
Expand Up @@ -1549,6 +1549,7 @@ func (bc *BlockChain) insertChain(chain types.Blocks, verifySeals bool) (int, []

// Some other error occurred, abort
case err != nil:
bc.futureBlocks.Remove(block.Hash())
stats.ignored += len(it.chain)
bc.reportBlock(block, nil, err)
return it.index, events, coalescedLogs, err
Expand Down

0 comments on commit 1a6ef5a

Please sign in to comment.