aboutsummaryrefslogtreecommitdiff
path: root/src/net_processing.cpp
diff options
context:
space:
mode:
authorPieter Wuille <pieter@wuille.net>2021-07-15 12:59:23 -0700
committerPieter Wuille <pieter@wuille.net>2021-07-15 12:59:23 -0700
commit5648138f5949013331c017c740646e2f4013bc24 (patch)
tree180d8e759edcd7497ff3dc78e1ec67eff8c406cb /src/net_processing.cpp
parent0d64b8f709b4655d8702f810d4876cd8d96ded82 (diff)
downloadbitcoin-5648138f5949013331c017c740646e2f4013bc24.tar.xz
Randomize the order of addr processing
Diffstat (limited to 'src/net_processing.cpp')
-rw-r--r--src/net_processing.cpp1
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)