Page MenuHomePhabricator

net: Make addr relay mockable, add test
ClosedPublic

Authored by Fabien on Nov 20 2020, 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
Lint Not Applicable
Unit
Tests Not Applicable