diff options
| author | Karl-Johan Alm <[email protected]> | 2019-06-19 13:59:11 +0900 |
|---|---|---|
| committer | Karl-Johan Alm <[email protected]> | 2019-07-08 09:53:52 +0900 |
| commit | b6fb617aaaad5f9cdd7f2ad2825b253ca792055d (patch) | |
| tree | f4de15cab1cb053a1afaa03ba215bafe423d68a7 /src/zmq/zmqrpc.cpp | |
| parent | Make the RPCHelpMan aware of JSONRPCRequest and add Check() helper (diff) | |
| download | discoin-b6fb617aaaad5f9cdd7f2ad2825b253ca792055d.tar.xz discoin-b6fb617aaaad5f9cdd7f2ad2825b253ca792055d.zip | |
rpc: switch to using RPCHelpMan.Check()
Diffstat (limited to 'src/zmq/zmqrpc.cpp')
| -rw-r--r-- | src/zmq/zmqrpc.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/zmq/zmqrpc.cpp b/src/zmq/zmqrpc.cpp index a34968ef7..cf97b7ecc 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) { |