mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-02-28 00:27:26 +00:00
core/blockchain: remove block from futureBlocks on error (#19763)
This commit is contained in:
parent
ad03d9801c
commit
1a6ef5ae58
1 changed files with 1 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue