Skip to content

Commit 883154c

Browse files
committed
[rpc] rename disconnectnode argument
1 parent eab00d9 commit 883154c

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)