HomePhabricator

Use steady clock in SeedStrengthen and FlushStateToDisk

Description

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

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

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

Details

Provenance
MarcoFalke <6399679+MarcoFalke@users.noreply.github.com>Authored on Mar 2 2023, 13:43
PiRKCommitted on Sep 17 2025, 18:26
PiRKPushed on Sep 17 2025, 18:26
Reviewer
Restricted Project
Differential Revision
D18638: Use steady clock in SeedStrengthen and FlushStateToDisk
Parents
rABCa87f2778da74: [Cashtab] Remove multi-path support from tx history parsing and websocket…
Branches
Unknown
Tags
Unknown