aboutsummaryrefslogtreecommitdiff
path: root/src/zmq
diff options
context:
space:
mode:
authorKarl-Johan Alm <karljohan-alm@garage.co.jp>2019-06-19 13:59:11 +0900
committerKarl-Johan Alm <karljohan-alm@garage.co.jp>2019-07-08 09:53:52 +0900
commitb6fb617aaaad5f9cdd7f2ad2825b253ca792055d (patch)
treef4de15cab1cb053a1afaa03ba215bafe423d68a7 /src/zmq
parentc7a9fc234f3ce400ce78b9b434d2d210b2646c50 (diff)
downloadbitcoin-b6fb617aaaad5f9cdd7f2ad2825b253ca792055d.tar.xz
rpc: switch to using RPCHelpMan.Check()
Diffstat (limited to 'src/zmq')
-rw-r--r--src/zmq/zmqrpc.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/zmq/zmqrpc.cpp b/src/zmq/zmqrpc.cpp
index a34968ef7d..cf97b7ecce 100644
--- a/src/zmq/zmqrpc.cpp
+++ b/src/zmq/zmqrpc.cpp
@@ -15,8 +15,6 @@ namespace {
UniValue getzmqnotifications(const JSONRPCRequest& request)
{
- if (request.fHelp || request.params.size() != 0) {
- throw std::runtime_error(
RPCHelpMan{"getzmqnotifications",
"\nReturns information about the active ZeroMQ notifications.\n",
{},
@@ -34,8 +32,7 @@ UniValue getzmqnotifications(const JSONRPCRequest& request)
HelpExampleCli("getzmqnotifications", "")
+ HelpExampleRpc("getzmqnotifications", "")
},
- }.ToString());
- }
+ }.Check(request);
UniValue result(UniValue::VARR);
if (g_zmq_notification_interface != nullptr) {