aboutsummaryrefslogtreecommitdiff
path: root/src/rpc/client.cpp
diff options
context:
space:
mode:
authorJohn Newbery <john@johnnewbery.com>2017-04-03 10:03:00 -0400
committerJohn Newbery <john@johnnewbery.com>2017-04-19 13:47:51 -0400
commit23e6e64a247ef61388f9b8902bc448f0c6159e0e (patch)
tree05039c20026b8d6c7f12ab3d12a90532517d6461 /src/rpc/client.cpp
parent2584925077f9658b3953ad931b74779006e59807 (diff)
downloadbitcoin-23e6e64a247ef61388f9b8902bc448f0c6159e0e.tar.xz
Allow disconnectnode() to be called with node id
disconnectnode() can currently only be called with the IP address/port of the node the user wishes to connect. This commit allows the node to be disconnected using the nodeid returned by getpeerinfo().
Diffstat (limited to 'src/rpc/client.cpp')
-rw-r--r--src/rpc/client.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/rpc/client.cpp b/src/rpc/client.cpp
index 1f3c4e52ad..941bdd9379 100644
--- a/src/rpc/client.cpp
+++ b/src/rpc/client.cpp
@@ -115,6 +115,7 @@ static const CRPCConvertParam vRPCConvertParams[] =
{ "bumpfee", 1, "options" },
{ "logging", 0, "include" },
{ "logging", 1, "exclude" },
+ { "disconnectnode", 1, "nodeid" },
// Echo with conversion (For testing only)
{ "echojson", 0, "arg0" },
{ "echojson", 1, "arg1" },