@@ -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 " \n Immediately disconnects from the specified node.\n "
244244 " \n Arguments:\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 " \n Examples:\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