mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Send fetch packs to eligible peers equally.
This commit is contained in:
@@ -409,7 +409,7 @@ bool LedgerMaster::acquireMissingLedger (Ledger::ref origLedger, uint256 const&
|
||||
{
|
||||
if (count++ == 0)
|
||||
target = peer;
|
||||
else if ((rand () % ++count) == 0)
|
||||
else if ((rand () % count) == 0)
|
||||
target = peer;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user