Send fetch packs to eligible peers equally.

This commit is contained in:
JoelKatz
2013-08-10 22:41:35 -07:00
parent fb1cc5f18d
commit 7038f4bbbc

View File

@@ -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;
}
}