Skip to content

Commit f4db00f

Browse files
committed
Merge #10204: [rpc] rename disconnectnode argument
883154c [rpc] rename disconnectnode argument (John Newbery) Tree-SHA512: 14245befd0a7315edd9e03c8bb283ff6b546cf4ef93c3ce02c01de687fea3bb96c510a638a42d2d6799e5e3e5b4f800021c2530b504baeaa4a4dc99323165986
2 parents b7365f0 + 883154c commit f4db00f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/rpc/net.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -236,10 +236,10 @@ UniValue disconnectnode(const JSONRPCRequest& request)
236236
{
237237
if (request.fHelp || request.params.size() != 1)
238238
throw std::runtime_error(
239-
"disconnectnode \"node\" \n"
239+
"disconnectnode \"address\" \n"
240240
"\nImmediately disconnects from the specified node.\n"
241241
"\nArguments:\n"
242-
"1. \"node\" (string, required) The node (see getpeerinfo for nodes)\n"
242+
"1. \"address\" (string, required) The IP address/port of the node\n"
243243
"\nExamples:\n"
244244
+ HelpExampleCli("disconnectnode", "\"192.168.0.6:8333\"")
245245
+ HelpExampleRpc("disconnectnode", "\"192.168.0.6:8333\"")
@@ -607,7 +607,7 @@ static const CRPCCommand commands[] =
607607
{ "network", "ping", &ping, true, {} },
608608
{ "network", "getpeerinfo", &getpeerinfo, true, {} },
609609
{ "network", "addnode", &addnode, true, {"node","command"} },
610-
{ "network", "disconnectnode", &disconnectnode, true, {"node"} },
610+
{ "network", "disconnectnode", &disconnectnode, true, {"address"} },
611611
{ "network", "getaddednodeinfo", &getaddednodeinfo, true, {"node"} },
612612
{ "network", "getnettotals", &getnettotals, true, {} },
613613
{ "network", "getnetworkinfo", &getnetworkinfo, true, {} },

0 commit comments

Comments
 (0)