mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-23 12:07:17 +00:00
Fix invalidation of anchors (#4292)
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
This commit is contained in:
parent
9d550e37a4
commit
438c3933af
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user