From 1a6ef5ae58ab7900139ef60da78cd1746b5bfa57 Mon Sep 17 00:00:00 2001 From: ywzqwwt <39263032+ywzqwwt@users.noreply.github.com> Date: Thu, 26 Sep 2019 16:57:51 +0800 Subject: [PATCH] core/blockchain: remove block from futureBlocks on error (#19763) --- core/blockchain.go | 1 + 1 file changed, 1 insertion(+) diff --git a/core/blockchain.go b/core/blockchain.go index 2665f7321..8b713d9e0 100644 --- a/core/blockchain.go +++ b/core/blockchain.go @@ -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