mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Stop the acquire engine in cases where it shouldn't run.
This commit is contained in:
@@ -248,7 +248,7 @@ bool LedgerMaster::acquireMissingLedger(Ledger::ref origLedger, const uint256& l
|
||||
int timeoutCount;
|
||||
int fetchCount = theApp->getMasterLedgerAcquire().getFetchCount(timeoutCount);
|
||||
|
||||
if (fetchCount < fetchMax)
|
||||
if ((fetchCount < fetchMax) && theApp->getOPs().isFull())
|
||||
{
|
||||
if (timeoutCount > 2)
|
||||
{
|
||||
@@ -305,7 +305,7 @@ bool LedgerMaster::shouldAcquire(uint32 currentLedger, uint32 ledgerHistory, uin
|
||||
|
||||
void LedgerMaster::resumeAcquiring()
|
||||
{
|
||||
if (theApp->getOPs().isNeedNetworkLedger())
|
||||
if (!theApp->getOPs().isFull())
|
||||
return;
|
||||
|
||||
boost::recursive_mutex::scoped_lock ml(mLock);
|
||||
|
||||
Reference in New Issue
Block a user