diff options
author | Pieter Wuille <pieter@wuille.net> | 2021-07-15 12:59:23 -0700 |
---|---|---|
committer | Pieter Wuille <pieter@wuille.net> | 2021-07-15 12:59:23 -0700 |
commit | 5648138f5949013331c017c740646e2f4013bc24 (patch) | |
tree | 180d8e759edcd7497ff3dc78e1ec67eff8c406cb /src | |
parent | 0d64b8f709b4655d8702f810d4876cd8d96ded82 (diff) |
Randomize the order of addr processing
Diffstat (limited to 'src')
-rw-r--r-- | src/net_processing.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/net_processing.cpp b/src/net_processing.cpp index 8d24b00887..79ef11a790 100644 --- a/src/net_processing.cpp +++ b/src/net_processing.cpp @@ -2804,6 +2804,7 @@ void PeerManagerImpl::ProcessMessage(CNode& pfrom, const std::string& msg_type, peer->m_addr_token_timestamp = current_time; const bool rate_limited = !pfrom.HasPermission(NetPermissionFlags::Addr); + Shuffle(vAddr.begin(), vAddr.end(), FastRandomContext()); for (CAddress& addr : vAddr) { if (interruptMsgProc) |