Show acquired ledgers in server_info

This commit is contained in:
JoelKatz
2012-10-26 15:37:29 -07:00
parent a3b6239b57
commit 5808ac0700
2 changed files with 4 additions and 0 deletions

View File

@@ -62,6 +62,8 @@ public:
void switchLedgers(Ledger::ref lastClosed, Ledger::ref newCurrent);
std::string getCompleteLedgers() { return mCompleteLedgers.toString(); }
Ledger::pointer closeLedger();
Ledger::pointer getLedgerBySeq(uint32 index)

View File

@@ -889,6 +889,8 @@ Json::Value NetworkOPs::getServerInfo()
if (mNeedNetworkLedger)
info["networkLedger"] = "waiting";
info["completeLedgers"] = theApp->getMasterLedger().getCompleteLedgers();
Json::Value lastClose = Json::objectValue;
lastClose["proposers"] = theApp->getOPs().getPreviousProposers();
lastClose["convergeTime"] = theApp->getOPs().getPreviousConvergeTime();