aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Newbery <john@johnnewbery.com>2017-04-13 15:38:59 -0400
committerWladimir J. van der Laan <laanwj@gmail.com>2017-04-14 10:19:06 +0200
commit3c796026e56abddf1b37128c0478532a371b5f9f (patch)
tree908d178bb034394dbd030070456204857cad3c97
parent06909df179e73a321963e85f53e270d297632409 (diff)
downloadbitcoin-3c796026e56abddf1b37128c0478532a371b5f9f.tar.xz
[rpc] rename disconnectnode argument
Github-Pull: #10204 Rebased-From: 883154cbcb306dcc6205fe349c7056ced1f6c5fc
-rw-r--r--src/rpc/net.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/rpc/net.cpp b/src/rpc/net.cpp
index f590db5efa..8706b42951 100644
--- a/src/rpc/net.cpp
+++ b/src/rpc/net.cpp
@@ -237,11 +237,11 @@ UniValue addnode(const JSONRPCRequest& request)
UniValue disconnectnode(const JSONRPCRequest& request)
{
if (request.fHelp || request.params.size() != 1)
- throw runtime_error(
- "disconnectnode \"node\" \n"
+ throw std::runtime_error(
+ "disconnectnode \"address\" \n"
"\nImmediately disconnects from the specified node.\n"
"\nArguments:\n"
- "1. \"node\" (string, required) The node (see getpeerinfo for nodes)\n"
+ "1. \"address\" (string, required) The IP address/port of the node\n"
"\nExamples:\n"
+ HelpExampleCli("disconnectnode", "\"192.168.0.6:8333\"")
+ HelpExampleRpc("disconnectnode", "\"192.168.0.6:8333\"")
@@ -609,7 +609,7 @@ static const CRPCCommand commands[] =
{ "network", "ping", &ping, true, {} },
{ "network", "getpeerinfo", &getpeerinfo, true, {} },
{ "network", "addnode", &addnode, true, {"node","command"} },
- { "network", "disconnectnode", &disconnectnode, true, {"node"} },
+ { "network", "disconnectnode", &disconnectnode, true, {"address"} },
{ "network", "getaddednodeinfo", &getaddednodeinfo, true, {"node"} },
{ "network", "getnettotals", &getnettotals, true, {} },
{ "network", "getnetworkinfo", &getnetworkinfo, true, {} },