mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Clean up some confusion about the last validated ledger versus the last published ledger.
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user