diff options
| author | John Newbery <[email protected]> | 2017-04-03 10:03:00 -0400 |
|---|---|---|
| committer | John Newbery <[email protected]> | 2017-04-19 13:47:51 -0400 |
| commit | 23e6e64a247ef61388f9b8902bc448f0c6159e0e (patch) | |
| tree | 05039c20026b8d6c7f12ab3d12a90532517d6461 /src/rpc/client.cpp | |
| parent | Merge #10178: Remove CValidationInterface::UpdatedTransaction (diff) | |
| download | discoin-23e6e64a247ef61388f9b8902bc448f0c6159e0e.tar.xz discoin-23e6e64a247ef61388f9b8902bc448f0c6159e0e.zip | |
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.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/rpc/client.cpp b/src/rpc/client.cpp index 1f3c4e52a..941bdd937 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" }, |