Add peer count to server_info.

This commit is contained in:
JoelKatz
2012-10-28 19:17:33 -07:00
parent bede5379a5
commit c9a2482c95
3 changed files with 9 additions and 0 deletions

View File

@@ -890,6 +890,7 @@ Json::Value NetworkOPs::getServerInfo()
info["networkLedger"] = "waiting";
info["completeLedgers"] = theApp->getMasterLedger().getCompleteLedgers();
info["peers"] = theApp->getConnectionPool().getPeerCount();
Json::Value lastClose = Json::objectValue;
lastClose["proposers"] = theApp->getOPs().getPreviousProposers();