Page MenuHomePhabricator

Use std::chrono for the time to rotate destination of addr messages + tests
ClosedPublic

Authored by PiRK on Nov 21 2023, 15:27.

Details

Summary

Before this change, 24 hours was defined as uint. I replaced it with std::chrono, which is mockable and type-safe.

Check that within 24h addr of a given node is forwarded to the same peer(s), and then the destination is rotated every 24h.

Co-authored-by: Jon Atack <jon@atack.com>

This is a backport of core#18642

Test Plan

ninja all check-all

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable