mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-23 15:20:49 +01: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();
|
auto local_socket_bytes = requestor.addrBind.GetAddrBytes();
|
||||||
uint64_t cache_id = GetDeterministicRandomizer(RANDOMIZER_ID_ADDRCACHE)
|
uint64_t cache_id = GetDeterministicRandomizer(RANDOMIZER_ID_ADDRCACHE)
|
||||||
.Write(requestor.addr.GetNetwork())
|
.Write(requestor.ConnectedThroughNetwork())
|
||||||
.Write(local_socket_bytes.data(), local_socket_bytes.size())
|
.Write(local_socket_bytes.data(), local_socket_bytes.size())
|
||||||
.Finalize();
|
.Finalize();
|
||||||
const auto current_time = GetTime<std::chrono::microseconds>();
|
const auto current_time = GetTime<std::chrono::microseconds>();
|
||||||
|
|
Loading…
Add table
Reference in a new issue