|
|
|
@ -460,6 +460,7 @@ UniValue getnetworkinfo(const UniValue& params, bool fHelp)
@@ -460,6 +460,7 @@ UniValue getnetworkinfo(const UniValue& params, bool fHelp)
|
|
|
|
|
" \"subversion\": \"/Satoshi:x.x.x/\", (string) the server subversion string\n" |
|
|
|
|
" \"protocolversion\": xxxxx, (numeric) the protocol version\n" |
|
|
|
|
" \"localservices\": \"xxxxxxxxxxxxxxxx\", (string) the services we offer to the network\n" |
|
|
|
|
" \"localrelay\": true|false, (bool) true if transaction relay is requested from peers\n" |
|
|
|
|
" \"timeoffset\": xxxxx, (numeric) the time offset\n" |
|
|
|
|
" \"connections\": xxxxx, (numeric) the number of connections\n" |
|
|
|
|
" \"networks\": [ (array) information per network\n" |
|
|
|
@ -494,6 +495,7 @@ UniValue getnetworkinfo(const UniValue& params, bool fHelp)
@@ -494,6 +495,7 @@ UniValue getnetworkinfo(const UniValue& params, bool fHelp)
|
|
|
|
|
obj.push_back(Pair("subversion", strSubVersion)); |
|
|
|
|
obj.push_back(Pair("protocolversion",PROTOCOL_VERSION)); |
|
|
|
|
obj.push_back(Pair("localservices", strprintf("%016x", nLocalServices))); |
|
|
|
|
obj.push_back(Pair("localrelay", fRelayTxes)); |
|
|
|
|
obj.push_back(Pair("timeoffset", GetTimeOffset())); |
|
|
|
|
obj.push_back(Pair("connections", (int)vNodes.size())); |
|
|
|
|
obj.push_back(Pair("networks", GetNetworksInfo())); |
|
|
|
|