The log may be confusing, when the NodeClock is behind the current header tip.
Fix it, by assuming the NodeClock is never behind the current header tip.
And modernize adjacent code
This is a backport of core#29647
Differential D20495
Avoid divide-by-zero in header sync logs when NodeClock is behind Authored by PiRK on Aug 24 2026, 08:35. Project Tags None Referenced Files None Subscribers None
Details
The log may be confusing, when the NodeClock is behind the current header tip. Fix it, by assuming the NodeClock is never behind the current header tip. And modernize adjacent code This is a backport of core#29647 ninja all check-all
Diff Detail
Event TimelineComment Actions Build Bitcoin ABC Diffs / Diff Testing (ai-review) passed. Diff : committed changes only (\(\ ──────────────────────────────────────── 1 file reviewed:
──────────────────────────────────────── |