Be smarter about when we grab fetch packs.

This commit is contained in:
JoelKatz
2013-04-25 19:11:18 -07:00
parent d8d87ff207
commit 4812d30c16
5 changed files with 24 additions and 9 deletions

View File

@@ -284,7 +284,7 @@ bool LedgerMaster::acquireMissingLedger(Ledger::ref origLedger, const uint256& l
}
}
if (theApp->getOPs().shouldFetchPack() && (ledgerSeq > 40000))
if (theApp->getOPs().shouldFetchPack(ledgerSeq) && (ledgerSeq > 40000))
{ // refill our fetch pack
Ledger::pointer nextLedger = mLedgerHistory.getLedgerBySeq(ledgerSeq + 1);
if (nextLedger)