Page MenuHomePhabricator

net: Make addr relay mockable, add test
ClosedPublic

Authored by Fabien on Fri, Nov 20, 16:02.

Details

Reviewers
deadalnix
Group Reviewers
Restricted Project
Commits
rABCada27e66ecbc: net: Make addr relay mockable, add test
Summary
As usual:

    Switch to std::chrono time to be type-safe and mockable
    Add basic test that relies on mocktime to add code coverage

Backport of core PR18454.

Test Plan
ninja all check-all

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.