mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-17 13:07:54 +02:00
[net] Use ConnectedThroughNetwork() instead of GetNetwork() to seed addr cache randomizer
This commit is contained in:
parent
dab18f03f7
commit
f10e80b6e4
1 changed files with 1 additions and 1 deletions
|
|
@ -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>();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue