From f10e80b6e4fbc151abbf1c20fbdcc3581d3688f0 Mon Sep 17 00:00:00 2001 From: dergoegge Date: Tue, 12 Apr 2022 13:46:59 +0200 Subject: [net] Use ConnectedThroughNetwork() instead of GetNetwork() to seed addr cache randomizer --- src/net.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/net.cpp b/src/net.cpp index 46d7020c5e..e8c131b5b0 100644 --- a/src/net.cpp +++ b/src/net.cpp @@ -2799,7 +2799,7 @@ std::vector CConnman::GetAddresses(CNode& requestor, size_t max_addres { auto local_socket_bytes = requestor.addrBind.GetAddrBytes(); uint64_t cache_id = GetDeterministicRandomizer(RANDOMIZER_ID_ADDRCACHE) - .Write(requestor.addr.GetNetwork()) + .Write(requestor.ConnectedThroughNetwork()) .Write(local_socket_bytes.data(), local_socket_bytes.size()) .Finalize(); const auto current_time = GetTime(); -- cgit v1.2.3