Update header_algos.go

This commit is contained in:
ledgerwatch 2022-05-04 08:33:42 +01:00 committed by GitHub
parent 158a738ad0
commit f634314226
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -238,8 +238,8 @@ func (hd *HeaderDownload) removeUpwards(toRemove []*Link) {
func (hd *HeaderDownload) MarkPreverified(link *Link) {
// Go through all parent links that are not preverified and mark them too
for link != nil && !link.verified {
link.verified = true
if !link.persisted {
link.verified = true
hd.moveLinkToQueue(link, InsertQueueID)
}
link = hd.links[link.header.ParentHash]