diff --git a/pkg/network/blockqueue.go b/pkg/network/blockqueue.go index ed6eac1ae..179c468a1 100644 --- a/pkg/network/blockqueue.go +++ b/pkg/network/blockqueue.go @@ -48,7 +48,7 @@ func (bq *blockQueue) run() { err := bq.chain.AddBlock(minblock) if err != nil { // The block might already be added by consensus. - if _, errget := bq.chain.GetBlock(minblock.Hash()); errget != nil { + if bq.chain.BlockHeight() < minblock.Index { bq.log.Warn("blockQueue: failed adding block into the blockchain", zap.String("error", err.Error()), zap.Uint32("blockHeight", bq.chain.BlockHeight()),