mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Don't let ledger fetching go too fast.
This commit is contained in:
@@ -512,7 +512,7 @@ void Ledger::saveAcceptedLedger(Job&, bool fromConsensus)
|
||||
if (!fromConsensus)
|
||||
dropCache();
|
||||
|
||||
if (theApp->getJobQueue().getJobCount(jtPUBOLDLEDGER) == 0)
|
||||
if (theApp->getJobQueue().getJobCountTotal(jtPUBOLDLEDGER) == 0)
|
||||
theApp->getLedgerMaster().resumeAcquiring();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user