diff options
| author | Wladimir J. van der Laan <[email protected]> | 2017-04-14 10:15:29 +0200 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2017-04-14 10:16:01 +0200 |
| commit | f4db00f9a5482c91ae8a86c6e41e0ba61acf152b (patch) | |
| tree | ccf2f4bd504aa15bfae258e5506054c8e4d34344 | |
| parent | Merge #9480: De-duplicate SignatureCacheHasher (diff) | |
| parent | [rpc] rename disconnectnode argument (diff) | |
| download | discoin-f4db00f9a5482c91ae8a86c6e41e0ba61acf152b.tar.xz discoin-f4db00f9a5482c91ae8a86c6e41e0ba61acf152b.zip | |
Merge #10204: [rpc] rename disconnectnode argument
883154c [rpc] rename disconnectnode argument (John Newbery)
Tree-SHA512: 14245befd0a7315edd9e03c8bb283ff6b546cf4ef93c3ce02c01de687fea3bb96c510a638a42d2d6799e5e3e5b4f800021c2530b504baeaa4a4dc99323165986
| -rw-r--r-- | src/rpc/net.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rpc/net.cpp b/src/rpc/net.cpp index 44c6e6d30..e4a909c1f 100644 --- a/src/rpc/net.cpp +++ b/src/rpc/net.cpp @@ -236,10 +236,10 @@ UniValue disconnectnode(const JSONRPCRequest& request) { if (request.fHelp || request.params.size() != 1) throw std::runtime_error( - "disconnectnode \"node\" \n" + "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\"") @@ -607,7 +607,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, {} }, |