diff --git a/turbo/stages/headerdownload/header_algos.go b/turbo/stages/headerdownload/header_algos.go index 4c357226b..5f0d7fd4b 100644 --- a/turbo/stages/headerdownload/header_algos.go +++ b/turbo/stages/headerdownload/header_algos.go @@ -374,8 +374,8 @@ func (hd *HeaderDownload) invalidateAnchor(anchor *Anchor, reason string) { log.Debug("Invalidating anchor", "height", anchor.blockHeight, "hash", anchor.parentHash, "reason", reason) hd.removeAnchor(anchor) for child := anchor.fLink; child != nil; child, child.next = child.next, nil { + hd.removeUpwards(child) } - hd.removeUpwards(anchor.fLink) } func (hd *HeaderDownload) RequestMoreHeaders(currentTime uint64) (*HeaderRequest, []PenaltyItem) {