From 778ef654bd9ab4a536b38d10636af2f239ab7df4 Mon Sep 17 00:00:00 2001 From: calmbeing Date: Thu, 29 Jun 2023 16:15:25 +0800 Subject: [PATCH] fix bad block hash because of chain reorg --- turbo/stages/headerdownload/header_algos.go | 1 + 1 file changed, 1 insertion(+) diff --git a/turbo/stages/headerdownload/header_algos.go b/turbo/stages/headerdownload/header_algos.go index 7217a30cc12..76897d22216 100644 --- a/turbo/stages/headerdownload/header_algos.go +++ b/turbo/stages/headerdownload/header_algos.go @@ -558,6 +558,7 @@ func (hd *HeaderDownload) InsertHeader(hf FeedHeaderFunc, terminalTotalDifficult } // Some blocks may be marked as non-valid on PoS chain because they were far into the future. delete(hd.badPoSHeaders, link.hash) + delete(hd.badHeaders, link.hash) if td != nil { if hd.seenAnnounces.Pop(link.hash) { hd.toAnnounce = append(hd.toAnnounce, Announce{Hash: link.hash, Number: link.blockHeight})