Add 'getValidatedLedger' to get the last fully-validated ledger.

We should probably audit calls to 'getClosedLedger' to see if they should use this instead.
This commit is contained in:
JoelKatz
2013-01-15 19:05:30 -08:00
parent fb3e2e8af4
commit 01b3e9e0ae

View File

@@ -67,10 +67,13 @@ public:
ScopedLock getLock() { return ScopedLock(mLock); }
// The current ledger is the ledger we believe new transactions should go in
Ledger::ref getCurrentLedger() { return mCurrentLedger; }
Ledger::ref getCurrentLedger() { return mCurrentLedger; }
// The finalized ledger is the last closed/accepted ledger
Ledger::ref getClosedLedger() { return mFinalizedLedger; }
Ledger::ref getClosedLedger() { return mFinalizedLedger; }
// The published ledger is the last fully validated ledger
Ledger::ref getValidatedLedger() { return mPubLedger; }
TER doTransaction(const SerializedTransaction& txn, TransactionEngineParams params);