mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Be smarter about when we grab fetch packs.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user