HomePhabricator

Add mockable clock type and TicksSinceEpoch helper

Description

Add mockable clock type and TicksSinceEpoch helper

Summary:
PR description:

This will be used primarily by the addr time refactor (core#24697) to make addr relay time type safe. However, it can also be used in other places, and can be reviewed independently.

This is a backport of core#25101
Depends on D14911

Test Plan: ninja all check-all

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

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

Details

Provenance
MarcoFalke <falke.marco@gmail.com>Authored on Apr 8 2022, 15:37
PiRKCommitted on Dec 5 2023, 18:25
PiRKPushed on Dec 5 2023, 18:25
Reviewer
Restricted Project
Differential Revision
D14912: Add mockable clock type and TicksSinceEpoch helper
Parents
rABC61921db59636: Cleanup received_new_header calculation to use WITH_LOCK
Branches
Unknown
Tags
Unknown