good morning!!!!

Skip to content
Snippets Groups Projects
Commit 1a6ef5ae authored by ywzqwwt's avatar ywzqwwt Committed by Martin Holst Swende
Browse files

core/blockchain: remove block from futureBlocks on error (#19763)

parent ad03d980
No related branches found
No related tags found
Loading
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment