@@ -236,10 +236,10 @@ UniValue disconnectnode(const JSONRPCRequest& request)
236
236
{
237
237
if (request.fHelp || request.params .size () != 1 )
238
238
throw std::runtime_error (
239
- " disconnectnode \" node \" \n "
239
+ " disconnectnode \" address \" \n "
240
240
" \n Immediately disconnects from the specified node.\n "
241
241
" \n Arguments:\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 "
243
243
" \n Examples:\n "
244
244
+ HelpExampleCli (" disconnectnode" , " \" 192.168.0.6:8333\" " )
245
245
+ HelpExampleRpc (" disconnectnode" , " \" 192.168.0.6:8333\" " )
@@ -607,7 +607,7 @@ static const CRPCCommand commands[] =
607
607
{ " network" , " ping" , &ping, true , {} },
608
608
{ " network" , " getpeerinfo" , &getpeerinfo, true , {} },
609
609
{ " network" , " addnode" , &addnode, true , {" node" ," command" } },
610
- { " network" , " disconnectnode" , &disconnectnode, true , {" node " } },
610
+ { " network" , " disconnectnode" , &disconnectnode, true , {" address " } },
611
611
{ " network" , " getaddednodeinfo" , &getaddednodeinfo, true , {" node" } },
612
612
{ " network" , " getnettotals" , &getnettotals, true , {} },
613
613
{ " network" , " getnetworkinfo" , &getnetworkinfo, true , {} },
0 commit comments