aboutsummaryrefslogtreecommitdiff
path: root/src/zmq/zmqrpc.cpp
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2018-12-21 12:29:36 -0500
committerMarcoFalke <falke.marco@gmail.com>2019-01-25 14:16:07 -0500
commitfaa1522e5ec5ec53b2b2b1ed36c11e84939bbb13 (patch)
tree8575b7dbb7409b486e5e38f575bf5ecebc06adb3 /src/zmq/zmqrpc.cpp
parent5eb32d23841bbcd8eaf7ba49dc4ddfd822bd4773 (diff)
RPCHelpMan: Pass through Result and Examples
Diffstat (limited to 'src/zmq/zmqrpc.cpp')
-rw-r--r--src/zmq/zmqrpc.cpp14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/zmq/zmqrpc.cpp b/src/zmq/zmqrpc.cpp
index d3eab46e5f..a34968ef7d 100644
--- a/src/zmq/zmqrpc.cpp
+++ b/src/zmq/zmqrpc.cpp
@@ -18,9 +18,9 @@ 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", {}}
- .ToString() +
- "\nResult:\n"
+ "\nReturns information about the active ZeroMQ notifications.\n",
+ {},
+ RPCResult{
"[\n"
" { (json object)\n"
" \"type\": \"pubhashtx\", (string) Type of notification\n"
@@ -29,10 +29,12 @@ UniValue getzmqnotifications(const JSONRPCRequest& request)
" },\n"
" ...\n"
"]\n"
- "\nExamples:\n"
- + HelpExampleCli("getzmqnotifications", "")
+ },
+ RPCExamples{
+ HelpExampleCli("getzmqnotifications", "")
+ HelpExampleRpc("getzmqnotifications", "")
- );
+ },
+ }.ToString());
}
UniValue result(UniValue::VARR);