From 81e30be00102bf80b23774b393daceca717e6489 Mon Sep 17 00:00:00 2001 From: JoelKatz Date: Tue, 16 Oct 2012 06:09:26 -0700 Subject: [PATCH] Include whether we're waiting for a network ledger in the server_info output. --- src/NetworkOPs.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/NetworkOPs.cpp b/src/NetworkOPs.cpp index 883ca8153..477cca227 100644 --- a/src/NetworkOPs.cpp +++ b/src/NetworkOPs.cpp @@ -875,8 +875,13 @@ Json::Value NetworkOPs::getServerInfo() default: info["serverState"] = "unknown"; } - if (!theConfig.VALIDATION_SEED.isValid()) info["serverState"] = "none"; - else info["validationPKey"] = NewcoinAddress::createNodePublic(theConfig.VALIDATION_SEED).humanNodePublic(); + if (!theConfig.VALIDATION_SEED.isValid()) + info["serverState"] = "none"; + else + info["validationPKey"] = NewcoinAddress::createNodePublic(theConfig.VALIDATION_SEED).humanNodePublic(); + + if (mNeedNetworkLedger) + info["networkLedger"] = "waiting"; Json::Value lastClose = Json::objectValue; lastClose["proposers"] = theApp->getOPs().getPreviousProposers();