HomePhabricator

refactor: Use type-safe std::chrono for addrman time

Description

refactor: Use type-safe std::chrono for addrman time

Summary:

util: Add HoursDouble

https://github.com/bitcoin/bitcoin/pull/24697/commits/fa253d385f9201ea10beacecf3e0e80ff69f3138

Add ChronoFormatter to serialize

https://github.com/bitcoin/bitcoin/pull/24697/commits/fa5103a9f5f8559ab005c0b012d3d3a8057d81fb

Add type-safe AdjustedTime() getter to timedata

Also, fix includes.

https://github.com/bitcoin/bitcoin/pull/24697/commits/fa2ae373f33fa76dc4e435e7cb4778055aa6afd5

refactor: Use type-safe std::chrono for addrman time

This concludes backport of core#24697
https://github.com/bitcoin/bitcoin/pull/24697/commits/fa64dd6673767992eb4e0e775fb0afdfd298610d

Depends on D15094

Test Plan:

ninja all check-all bitcoin-fuzzers
src/seeder/bitcoin-seeder

Check that the seeder finds valid peers

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Subscribers: Fabien

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

Details

Provenance
MarcoFalke <falke.marco@gmail.com>Authored on Apr 8 2022, 10:32
PiRKCommitted on Jan 8 2024, 09:02
PiRKPushed on Jan 8 2024, 09:03
Reviewer
Restricted Project
Differential Revision
D15095: refactor: Use type-safe std::chrono for addrman time
Parents
rABC8007a7c80109: Rename addrman time symbols
Branches
Unknown
Tags
Unknown