mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-26 14:05:51 +00:00
Spread fetch pack requests correctly.
This commit is contained in:
@@ -328,7 +328,7 @@ bool LedgerMaster::acquireMissingLedger(Ledger::ref origLedger, uint256 const& l
|
|||||||
{
|
{
|
||||||
if (count++ == 0)
|
if (count++ == 0)
|
||||||
target = peer;
|
target = peer;
|
||||||
else if ((rand() % count) == 0)
|
else if ((rand() % ++count) == 0)
|
||||||
target = peer;
|
target = peer;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user