rpc: Auto-format RPCResult

This commit is contained in:
MarcoFalke
2020-01-10 00:00:57 +07:00
parent fa7d0503d3
commit fa6b061fc1
11 changed files with 1475 additions and 1207 deletions

View File

@@ -19,14 +19,15 @@ UniValue getzmqnotifications(const JSONRPCRequest& request)
"\nReturns information about the active ZeroMQ notifications.\n",
{},
RPCResult{
"[\n"
" { (json object)\n"
" \"type\" : \"pubhashtx\", (string) Type of notification\n"
" \"address\" : \"...\", (string) Address of the publisher\n"
" \"hwm\" : n (numeric) Outbound message high water mark\n"
" },\n"
" ...\n"
"]\n"
RPCResult::Type::ARR, "", "",
{
{RPCResult::Type::OBJ, "", "",
{
{RPCResult::Type::STR, "type", "Type of notification"},
{RPCResult::Type::STR, "address", "Address of the publisher"},
{RPCResult::Type::NUM, "hwm", "Outbound message high water mark"},
}},
}
},
RPCExamples{
HelpExampleCli("getzmqnotifications", "")