Skip to content

Commit f10e80b

Browse files
committed
[net] Use ConnectedThroughNetwork() instead of GetNetwork() to seed addr cache randomizer
1 parent dab18f0 commit f10e80b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/net.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2799,7 +2799,7 @@ std::vector<CAddress> CConnman::GetAddresses(CNode& requestor, size_t max_addres
27992799
{
28002800
auto local_socket_bytes = requestor.addrBind.GetAddrBytes();
28012801
uint64_t cache_id = GetDeterministicRandomizer(RANDOMIZER_ID_ADDRCACHE)
2802-
.Write(requestor.addr.GetNetwork())
2802+
.Write(requestor.ConnectedThroughNetwork())
28032803
.Write(local_socket_bytes.data(), local_socket_bytes.size())
28042804
.Finalize();
28052805
const auto current_time = GetTime<std::chrono::microseconds>();

0 commit comments

Comments
 (0)