Remove pending save logic. Replace with job count logic.

Prioritize newer ledgers over clients.
This commit is contained in:
JoelKatz
2013-03-06 20:57:11 -08:00
parent e080ddb0fc
commit ff8dbcf5ff
3 changed files with 5 additions and 35 deletions

View File

@@ -89,9 +89,6 @@ private:
mutable boost::recursive_mutex mLock;
static int sPendingSaves;
static boost::recursive_mutex sPendingSaveLock;
Ledger(const Ledger&); // no implementation
Ledger& operator=(const Ledger&); // no implementation
@@ -101,8 +98,6 @@ protected:
// returned SLE is immutable
SLE::pointer getASNodeI(const uint256& nodeID, LedgerEntryType let);
static void incPendingSaves();
static void decPendingSaves();
void saveAcceptedLedger(Job&, bool fromConsensus);
void updateFees();
@@ -126,7 +121,6 @@ public:
static Ledger::pointer getSQL1(SqliteStatement*);
static void getSQL2(Ledger::ref);
static Ledger::pointer getLastFullLedger();
static int getPendingSaves();
static uint32 roundCloseTime(uint32 closeTime, uint32 closeResolution);
void updateHash();