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
Branches
Tags
No related merge requests found
...@@ -1549,6 +1549,7 @@ func (bc *BlockChain) insertChain(chain types.Blocks, verifySeals bool) (int, [] ...@@ -1549,6 +1549,7 @@ func (bc *BlockChain) insertChain(chain types.Blocks, verifySeals bool) (int, []
// Some other error occurred, abort // Some other error occurred, abort
case err != nil: case err != nil:
bc.futureBlocks.Remove(block.Hash())
stats.ignored += len(it.chain) stats.ignored += len(it.chain)
bc.reportBlock(block, nil, err) bc.reportBlock(block, nil, err)
return it.index, events, coalescedLogs, err return it.index, events, coalescedLogs, err
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment