Skip to content

Commit

Permalink
fix bad block hash because of chain reorg
Browse files Browse the repository at this point in the history
  • Loading branch information
calmbeing committed Jun 29, 2023
1 parent c24a82a commit 778ef65
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions turbo/stages/headerdownload/header_algos.go
Original file line number Diff line number Diff line change
Expand Up @@ -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})
Expand Down

0 comments on commit 778ef65

Please sign in to comment.