@@ -401,7 +401,7 @@ UniValue getnetworkinfo(const UniValue& params, bool fHelp)
401401 " \" localrelay\" : true|false, (bool) true if transaction relay is requested from peers\n "
402402 " \" timeoffset\" : xxxxx, (numeric) the time offset\n "
403403 " \" connections\" : xxxxx, (numeric) the number of connections\n "
404- " \" networkactive\" : x , (numeric) the number of connections \n "
404+ " \" networkactive\" : true|false , (bool) whether p2p networking is enabled \n "
405405 " \" networks\" : [ (array) information per network\n "
406406 " {\n "
407407 " \" name\" : \" xxx\" , (string) network (ipv4, ipv6 or onion)\n "
@@ -437,7 +437,7 @@ UniValue getnetworkinfo(const UniValue& params, bool fHelp)
437437 obj.push_back (Pair (" localrelay" , fRelayTxes ));
438438 obj.push_back (Pair (" timeoffset" , GetTimeOffset ()));
439439 if (g_connman) {
440- obj.push_back (Pair (" networkactive" , ( int ) g_connman->GetNetworkActive ()));
440+ obj.push_back (Pair (" networkactive" , g_connman->GetNetworkActive ()));
441441 obj.push_back (Pair (" connections" , (int )g_connman->GetNodeCount (CConnman::CONNECTIONS_ALL)));
442442 }
443443 obj.push_back (Pair (" networks" , GetNetworksInfo ()));
@@ -578,8 +578,8 @@ UniValue setnetworkactive(const JSONRPCRequest& request)
578578{
579579 if (request.fHelp || request.params .size () != 1 ) {
580580 throw runtime_error (
581- " setnetworkactive \" true|false\" \n"
582- " Disable/Re-Enable all network activity temporarily ."
581+ " setnetworkactive true|false\n "
582+ " Disable/enable all p2p network activity."
583583 );
584584 }
585585
0 commit comments