From 2521f1a6961a07eeaabdd31f6074c9b2a793ccd4 Mon Sep 17 00:00:00 2001 From: ledgerwatch Date: Tue, 3 Oct 2023 17:34:03 +0100 Subject: [PATCH] Fix another case of header download hanging (non-POS) (#8356) --- turbo/stages/headerdownload/header_algos.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/turbo/stages/headerdownload/header_algos.go b/turbo/stages/headerdownload/header_algos.go index a61101488..1b8d5408d 100644 --- a/turbo/stages/headerdownload/header_algos.go +++ b/turbo/stages/headerdownload/header_algos.go @@ -521,7 +521,7 @@ func (hd *HeaderDownload) InsertHeader(hf FeedHeaderFunc, terminalTotalDifficult var returnTd *big.Int var lastD *big.Int var lastTime uint64 - if hd.insertQueue.Len() > 0 && hd.insertQueue[0].blockHeight <= hd.highestInDb+1 { + if hd.insertQueue.Len() > 0 { link := hd.insertQueue[0] _, bad := hd.badHeaders[link.hash] if !bad && !link.persisted {