Clean up some confusion about the last validated ledger versus the last published ledger.

This commit is contained in:
JoelKatz
2013-07-13 19:32:20 -07:00
parent 2addaacfbb
commit 0fd5f98c9c
2 changed files with 27 additions and 2 deletions

View File

@@ -58,11 +58,19 @@ public:
return mFinalizedLedger;
}
// The published ledger is the last fully validated ledger
// The validated ledger is the last fully validated ledger
Ledger::ref getValidatedLedger ()
{
return mValidLedger;
}
// This is the last ledger we published to clients and can lag the validated ledger
Ledger::ref getPublishedLedger ()
{
return mPubLedger;
}
int getPublishedLedgerAge ();
int getValidatedLedgerAge ();
bool isCaughtUp(std::string& reason);