Browse Source

Merge #10204: [rpc] rename disconnectnode argument

883154c [rpc] rename disconnectnode argument (John Newbery)

Tree-SHA512: 14245befd0a7315edd9e03c8bb283ff6b546cf4ef93c3ce02c01de687fea3bb96c510a638a42d2d6799e5e3e5b4f800021c2530b504baeaa4a4dc99323165986
0.15
Wladimir J. van der Laan 8 years ago
parent
commit
f4db00f9a5
No known key found for this signature in database
GPG Key ID: 74810B012346C9A6
  1. 6
      src/rpc/net.cpp

6
src/rpc/net.cpp

@ -236,10 +236,10 @@ UniValue disconnectnode(const JSONRPCRequest& request)
{ {
if (request.fHelp || request.params.size() != 1) if (request.fHelp || request.params.size() != 1)
throw std::runtime_error( throw std::runtime_error(
"disconnectnode \"node\" \n" "disconnectnode \"address\" \n"
"\nImmediately disconnects from the specified node.\n" "\nImmediately disconnects from the specified node.\n"
"\nArguments:\n" "\nArguments:\n"
"1. \"node\" (string, required) The node (see getpeerinfo for nodes)\n" "1. \"address\" (string, required) The IP address/port of the node\n"
"\nExamples:\n" "\nExamples:\n"
+ HelpExampleCli("disconnectnode", "\"192.168.0.6:8333\"") + HelpExampleCli("disconnectnode", "\"192.168.0.6:8333\"")
+ HelpExampleRpc("disconnectnode", "\"192.168.0.6:8333\"") + HelpExampleRpc("disconnectnode", "\"192.168.0.6:8333\"")
@ -607,7 +607,7 @@ static const CRPCCommand commands[] =
{ "network", "ping", &ping, true, {} }, { "network", "ping", &ping, true, {} },
{ "network", "getpeerinfo", &getpeerinfo, true, {} }, { "network", "getpeerinfo", &getpeerinfo, true, {} },
{ "network", "addnode", &addnode, true, {"node","command"} }, { "network", "addnode", &addnode, true, {"node","command"} },
{ "network", "disconnectnode", &disconnectnode, true, {"node"} }, { "network", "disconnectnode", &disconnectnode, true, {"address"} },
{ "network", "getaddednodeinfo", &getaddednodeinfo, true, {"node"} }, { "network", "getaddednodeinfo", &getaddednodeinfo, true, {"node"} },
{ "network", "getnettotals", &getnettotals, true, {} }, { "network", "getnettotals", &getnettotals, true, {} },
{ "network", "getnetworkinfo", &getnetworkinfo, true, {} }, { "network", "getnetworkinfo", &getnetworkinfo, true, {} },

Loading…
Cancel
Save