diff --git a/src/rpc/net.cpp b/src/rpc/net.cpp --- a/src/rpc/net.cpp +++ b/src/rpc/net.cpp @@ -352,9 +352,8 @@ " ,...\n" "]\n" "\nExamples:\n" + - HelpExampleCli("getaddednodeinfo", "true") + - HelpExampleCli("getaddednodeinfo", "true \"192.168.0.201\"") + - HelpExampleRpc("getaddednodeinfo", "true, \"192.168.0.201\"")); + HelpExampleCli("getaddednodeinfo", "\"192.168.0.201\"") + + HelpExampleRpc("getaddednodeinfo", "\"192.168.0.201\"")); if (!g_connman) throw JSONRPCError( @@ -469,9 +468,9 @@ obj.push_back(Pair("name", GetNetworkName(network))); obj.push_back(Pair("limited", IsLimited(network))); obj.push_back(Pair("reachable", IsReachable(network))); - obj.push_back(Pair("proxy", - proxy.IsValid() ? proxy.proxy.ToStringIPPort() - : std::string())); + obj.push_back(Pair("proxy", proxy.IsValid() + ? proxy.proxy.ToStringIPPort() + : std::string())); obj.push_back( Pair("proxy_randomize_credentials", proxy.randomize_credentials)); networks.push_back(obj); @@ -526,27 +525,29 @@ "/kB\n" " \"excessutxocharge\": x.xxxxxxxx, (numeric) minimum " "charge for excess utxos in " + - CURRENCY_UNIT + "\n" - " \"incrementalfee\": x.xxxxxxxx, " - "(numeric) minimum fee increment for mempool " - "limiting or BIP 125 replacement in " + - CURRENCY_UNIT + "/kB\n" - " \"localaddresses\": [ " - "(array) list of local addresses\n" - " {\n" - " \"address\": \"xxxx\", " - "(string) network address\n" - " \"port\": xxx, " - "(numeric) network port\n" - " \"score\": xxx " - "(numeric) relative score\n" - " }\n" - " ,...\n" - " ]\n" - " \"warnings\": \"...\" " - "(string) any network warnings\n" - "}\n" - "\nExamples:\n" + + CURRENCY_UNIT + + "\n" + " \"incrementalfee\": x.xxxxxxxx, " + "(numeric) minimum fee increment for mempool " + "limiting or BIP 125 replacement in " + + CURRENCY_UNIT + + "/kB\n" + " \"localaddresses\": [ " + "(array) list of local addresses\n" + " {\n" + " \"address\": \"xxxx\", " + "(string) network address\n" + " \"port\": xxx, " + "(numeric) network port\n" + " \"score\": xxx " + "(numeric) relative score\n" + " }\n" + " ,...\n" + " ]\n" + " \"warnings\": \"...\" " + "(string) any network warnings\n" + "}\n" + "\nExamples:\n" + HelpExampleCli("getnetworkinfo", "") + HelpExampleRpc("getnetworkinfo", "")); @@ -562,9 +563,8 @@ obj.push_back(Pair("timeoffset", GetTimeOffset())); if (g_connman) { obj.push_back(Pair("networkactive", g_connman->GetNetworkActive())); - obj.push_back( - Pair("connections", - (int)g_connman->GetNodeCount(CConnman::CONNECTIONS_ALL))); + obj.push_back(Pair("connections", (int)g_connman->GetNodeCount( + CConnman::CONNECTIONS_ALL))); } obj.push_back(Pair("networks", GetNetworksInfo())); obj.push_back(