Add version and build information to server_info response.

This commit is contained in:
Eric Lombrozo
2013-06-21 00:44:52 +02:00
committed by Vinnie Falco
parent c6fe72f666
commit 1a2c87b3a8
5 changed files with 57 additions and 37 deletions

View File

@@ -1345,6 +1345,9 @@ Json::Value NetworkOPs::getServerInfo (bool human, bool admin)
{
Json::Value info = Json::objectValue;
info ["build_version"] = BuildVersion::getBuildVersion ();
info ["client_version"] = BuildVersion::getClientVersion ();
if (theConfig.TESTNET)
info["testnet"] = theConfig.TESTNET;