mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-28 23:15:52 +00:00
Report where the ledger publication stream is in server_info
This commit is contained in:
@@ -1509,6 +1509,12 @@ Json::Value NetworkOPs::getServerInfo (bool human, bool admin)
|
||||
info["validated_ledger"] = l;
|
||||
else
|
||||
info["closed_ledger"] = l;
|
||||
|
||||
Ledger::pointer lpPublished = getPublishedLedger ();
|
||||
if (!lpPublished)
|
||||
info["published_ledger"] = "none";
|
||||
else if (lpPublished->getLedgerSeq() != lpClosed->getLedgerSeq())
|
||||
info["published_ledger"] = lpPublished->getLedgerSeq();
|
||||
}
|
||||
|
||||
return info;
|
||||
|
||||
@@ -80,6 +80,10 @@ public:
|
||||
{
|
||||
return mLedgerMaster->getValidatedLedger ();
|
||||
}
|
||||
Ledger::ref getPublishedLedger ()
|
||||
{
|
||||
return mLedgerMaster->getPublishedLedger ();
|
||||
}
|
||||
Ledger::ref getCurrentLedger ()
|
||||
{
|
||||
return mLedgerMaster->getCurrentLedger ();
|
||||
|
||||
Reference in New Issue
Block a user