|
|
@ -50,6 +50,7 @@ UniValue getinfo(const JSONRPCRequest& request) |
|
|
|
"\nDEPRECATED. Returns an object containing various state info.\n" |
|
|
|
"\nDEPRECATED. Returns an object containing various state info.\n" |
|
|
|
"\nResult:\n" |
|
|
|
"\nResult:\n" |
|
|
|
"{\n" |
|
|
|
"{\n" |
|
|
|
|
|
|
|
" \"deprecation-warning\": \"...\" (string) warning that the getinfo command is deprecated and will be removed in 0.16\n" |
|
|
|
" \"version\": xxxxx, (numeric) the server version\n" |
|
|
|
" \"version\": xxxxx, (numeric) the server version\n" |
|
|
|
" \"protocolversion\": xxxxx, (numeric) the protocol version\n" |
|
|
|
" \"protocolversion\": xxxxx, (numeric) the protocol version\n" |
|
|
|
" \"walletversion\": xxxxx, (numeric) the wallet version\n" |
|
|
|
" \"walletversion\": xxxxx, (numeric) the wallet version\n" |
|
|
@ -84,6 +85,8 @@ UniValue getinfo(const JSONRPCRequest& request) |
|
|
|
GetProxy(NET_IPV4, proxy); |
|
|
|
GetProxy(NET_IPV4, proxy); |
|
|
|
|
|
|
|
|
|
|
|
UniValue obj(UniValue::VOBJ); |
|
|
|
UniValue obj(UniValue::VOBJ); |
|
|
|
|
|
|
|
obj.push_back(Pair("deprecation-warning", "WARNING: getinfo is deprecated and will be fully removed in 0.16." |
|
|
|
|
|
|
|
" Projects should transition to using getblockchaininfo, getnetworkinfo, and getwalletinfo before upgrading to 0.16")); |
|
|
|
obj.push_back(Pair("version", CLIENT_VERSION)); |
|
|
|
obj.push_back(Pair("version", CLIENT_VERSION)); |
|
|
|
obj.push_back(Pair("protocolversion", PROTOCOL_VERSION)); |
|
|
|
obj.push_back(Pair("protocolversion", PROTOCOL_VERSION)); |
|
|
|
#ifdef ENABLE_WALLET |
|
|
|
#ifdef ENABLE_WALLET |
|
|
|