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

@@ -72,6 +72,9 @@ public:
// The finalized ledger is the last closed/accepted ledger
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);
void pushLedger(Ledger::ref newLedger);