Page MenuHomePhabricator

Use steady clock in SeedStrengthen and FlushStateToDisk
ClosedPublic

Authored by PiRK on Sep 16 2025, 12:48.

Details

Reviewers
Fabien
Group Reviewers
Restricted Project
Commits
rABC4aeef5c576fa: Use steady clock in SeedStrengthen and FlushStateToDisk
Summary

There may be a theoretical deadlock for the duration of the offset when the system clock is adjusted into a past time while executing SeedStrengthen.

Fix this by using steady clock.

Do the same in FlushStateToDisk, which should make the flushes more steady, if the system clock is adjusted by a large offset.

This is a backport of core#27189

Depends on D18636

Test Plan

ninja all check-all

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

PiRK requested review of this revision.Sep 16 2025, 12:48
This revision is now accepted and ready to land.Sep 17 2025, 16:16