diff options
author | Amiti Uttarwar <amiti@uttarwar.org> | 2021-08-25 15:40:59 -0700 |
---|---|---|
committer | Amiti Uttarwar <amiti@uttarwar.org> | 2021-09-28 19:02:34 -0400 |
commit | 7cba9d56185b9325ce41d79364e448462fff0f6a (patch) | |
tree | 810167c86f44ed8d730232ec77544668b3bd6c85 /src/bench/addrman.cpp | |
parent | 8af5b54f973e11c847345418d8631bc301b96130 (diff) |
[net, addrman] Remove external dependencies on CAddrInfo objects
CAddrInfo objects are an implementation detail of how AddrMan manages and adds
metadata to different records. Encapsulate this logic by updating Select &
SelectTriedCollision to return the additional info that the callers need.
Diffstat (limited to 'src/bench/addrman.cpp')
-rw-r--r-- | src/bench/addrman.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bench/addrman.cpp b/src/bench/addrman.cpp index bebf86a09d..b4c2e35f42 100644 --- a/src/bench/addrman.cpp +++ b/src/bench/addrman.cpp @@ -87,7 +87,7 @@ static void AddrManSelect(benchmark::Bench& bench) bench.run([&] { const auto& address = addrman.Select(); - assert(address.GetPort() > 0); + assert(address.first.GetPort() > 0); }); } |