Skip to content

Commit

Permalink
blockchain.go: remove from future blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
alanorwick committed Jul 21, 2022
1 parent 121c0ff commit 27e18e5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/blockchain.go
Original file line number Diff line number Diff line change
Expand Up @@ -2225,8 +2225,10 @@ func (bc *BlockChain) insertChain(chain types.Blocks, verifySeals bool, setHead
}
return it.index, nil
} else if err.Error() == "dominant chain is uncled" {
bc.futureBlocks.Remove(block.Hash())
return it.index, nil
} else {
bc.futureBlocks.Remove(block.Hash())
return it.index, err
}
}
Expand Down

0 comments on commit 27e18e5

Please sign in to comment.