diff options
author | dergoegge <n.goeggi@gmail.com> | 2022-04-12 13:46:59 +0200 |
---|---|---|
committer | dergoegge <n.goeggi@gmail.com> | 2022-05-09 16:18:22 +0200 |
commit | f10e80b6e4fbc151abbf1c20fbdcc3581d3688f0 (patch) | |
tree | 0422ce2996a972a8a9a229bf32a66f088c761019 | |
parent | dab18f03f725d8a0fc3abb3d5af5f6b8facb5f6b (diff) |
[net] Use ConnectedThroughNetwork() instead of GetNetwork() to seed addr cache randomizer
-rw-r--r-- | src/net.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<CAddress> 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<std::chrono::microseconds>(); |