Simplify the ledger acquire logic. This fixes a few bugs related to it including

the issue if you remove the ledger DB.
This commit is contained in:
JoelKatz
2013-03-11 17:57:12 -07:00
parent 2c88637cf9
commit 566b36715d
3 changed files with 2 additions and 14 deletions

View File

@@ -516,10 +516,7 @@ void Ledger::saveAcceptedLedger(Job&, bool fromConsensus)
}
if (!fromConsensus)
{
dropCache();
return;
}
if (theApp->getJobQueue().getJobCount(jtPUBOLDLEDGER) == 0)
theApp->getLedgerMaster().resumeAcquiring();