mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-05 08:47:53 +00:00
Include whether we're waiting for a network ledger in the server_info output.
This commit is contained in:
@@ -875,8 +875,13 @@ Json::Value NetworkOPs::getServerInfo()
|
|||||||
default: info["serverState"] = "unknown";
|
default: info["serverState"] = "unknown";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!theConfig.VALIDATION_SEED.isValid()) info["serverState"] = "none";
|
if (!theConfig.VALIDATION_SEED.isValid())
|
||||||
else info["validationPKey"] = NewcoinAddress::createNodePublic(theConfig.VALIDATION_SEED).humanNodePublic();
|
info["serverState"] = "none";
|
||||||
|
else
|
||||||
|
info["validationPKey"] = NewcoinAddress::createNodePublic(theConfig.VALIDATION_SEED).humanNodePublic();
|
||||||
|
|
||||||
|
if (mNeedNetworkLedger)
|
||||||
|
info["networkLedger"] = "waiting";
|
||||||
|
|
||||||
Json::Value lastClose = Json::objectValue;
|
Json::Value lastClose = Json::objectValue;
|
||||||
lastClose["proposers"] = theApp->getOPs().getPreviousProposers();
|
lastClose["proposers"] = theApp->getOPs().getPreviousProposers();
|
||||||
|
|||||||
Reference in New Issue
Block a user