HomePhabricator

net: Make addr relay mockable, add test

Description

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

Reviewers: #bitcoin_abc, deadalnix

Reviewed By: #bitcoin_abc, deadalnix

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

Details

Provenance
MarcoFalke <falke.marco@gmail.com>Authored on Mar 27 2020, 22:00
FabienCommitted on Nov 21 2020, 07:50
FabienPushed on Nov 21 2020, 07:51
Reviewer
Restricted Project
Differential Revision
D8479: net: Make addr relay mockable, add test
Parents
rABC72637855dccc: [buildbot] Support a list of regex when matching builds to changed files
Branches
Unknown
Tags
Unknown