Randomize the order of addr processing
(cherry picked from commit bitcoin/bitcoin@5648138f59)
This commit is contained in:
parent
7c739e2b20
commit
c8cdfcffd0
|
@ -37,6 +37,7 @@
|
||||||
#include "wallet/asyncrpcoperation_shieldcoinbase.h"
|
#include "wallet/asyncrpcoperation_shieldcoinbase.h"
|
||||||
#include "warnings.h"
|
#include "warnings.h"
|
||||||
|
|
||||||
|
#include <algorithm>
|
||||||
#include <atomic>
|
#include <atomic>
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
#include <variant>
|
#include <variant>
|
||||||
|
@ -6671,6 +6672,7 @@ bool static ProcessMessage(const CChainParams& chainparams, CNode* pfrom, string
|
||||||
}
|
}
|
||||||
pfrom->m_addr_token_timestamp = current_time;
|
pfrom->m_addr_token_timestamp = current_time;
|
||||||
|
|
||||||
|
std::shuffle(vAddr.begin(), vAddr.end(), ZcashRandomEngine());
|
||||||
for (CAddress& addr : vAddr)
|
for (CAddress& addr : vAddr)
|
||||||
{
|
{
|
||||||
boost::this_thread::interruption_point();
|
boost::this_thread::interruption_point();
|
||||||
|
|
Loading…
Reference in New Issue