Skip to content

Commit 720325f

Browse files
laanwjcodablock
authored andcommitted
Merge bitcoin#10204: [rpc] rename disconnectnode argument
883154c [rpc] rename disconnectnode argument (John Newbery) Tree-SHA512: 14245befd0a7315edd9e03c8bb283ff6b546cf4ef93c3ce02c01de687fea3bb96c510a638a42d2d6799e5e3e5b4f800021c2530b504baeaa4a4dc99323165986
1 parent 2e45791 commit 720325f

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
@@ -239,10 +239,10 @@ UniValue disconnectnode(const JSONRPCRequest& request)
239239
{
240240
if (request.fHelp || request.params.size() != 1)
241241
throw runtime_error(
242-
"disconnectnode \"node\" \n"
242+
"disconnectnode \"address\" \n"
243243
"\nImmediately disconnects from the specified node.\n"
244244
"\nArguments:\n"
245-
"1. \"node\" (string, required) The node (see getpeerinfo for nodes)\n"
245+
"1. \"address\" (string, required) The IP address/port of the node\n"
246246
"\nExamples:\n"
247247
+ HelpExampleCli("disconnectnode", "\"192.168.0.6:9999\"")
248248
+ HelpExampleRpc("disconnectnode", "\"192.168.0.6:9999\"")
@@ -610,7 +610,7 @@ static const CRPCCommand commands[] =
610610
{ "network", "ping", &ping, true, {} },
611611
{ "network", "getpeerinfo", &getpeerinfo, true, {} },
612612
{ "network", "addnode", &addnode, true, {"node","command"} },
613-
{ "network", "disconnectnode", &disconnectnode, true, {"node"} },
613+
{ "network", "disconnectnode", &disconnectnode, true, {"address"} },
614614
{ "network", "getaddednodeinfo", &getaddednodeinfo, true, {"node"} },
615615
{ "network", "getnettotals", &getnettotals, true, {} },
616616
{ "network", "getnetworkinfo", &getnetworkinfo, true, {} },

0 commit comments

Comments
 (0)