HomePhabricator

[net processing] Handle IsContinuationOfLowWorkHeadersSync return value…

Description

[net processing] Handle IsContinuationOfLowWorkHeadersSync return value correctly when new headers sync is started

Summary:
This makes TryLowWorkHeadersSync always return true for low work chains, no matter what IsContinuationOfLowWorkHeadersSync returns, preventing potentially commiting low-work headers to disk before the chain of headers has sufficient work.

This is a backport of core#26355 and core#26387

Test Plan: ninja all check-all

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Differential Revision: https://reviews.bitcoinabc.org/D16787

Details

Provenance
dergoegge <n.goeggi@gmail.com>Authored on Oct 20 2022, 16:55
PiRKCommitted on Sep 19 2024, 10:25
PiRKPushed on Sep 19 2024, 10:25
Reviewer
Restricted Project
Differential Revision
D16787: [net processing] Handle IsContinuationOfLowWorkHeadersSync return value correctly when new headers sync is started
Parents
rABCa18387188c0d: [avalanche] Add missing const to getWinners
Branches
Unknown
Tags
Unknown