File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 13
13
14
14
namespace {
15
15
16
- UniValue getzmqnotifications (const JSONRPCRequest& request )
16
+ static RPCHelpMan getzmqnotifications ()
17
17
{
18
- RPCHelpMan{" getzmqnotifications" ,
18
+ return RPCHelpMan{" getzmqnotifications" ,
19
19
" \n Returns information about the active ZeroMQ notifications.\n " ,
20
20
{},
21
21
RPCResult{
@@ -33,8 +33,8 @@ UniValue getzmqnotifications(const JSONRPCRequest& request)
33
33
HelpExampleCli (" getzmqnotifications" , " " )
34
34
+ HelpExampleRpc (" getzmqnotifications" , " " )
35
35
},
36
- }. Check ( request);
37
-
36
+ [&]( const RPCHelpMan& self, const JSONRPCRequest& request) -> UniValue
37
+ {
38
38
UniValue result (UniValue::VARR);
39
39
if (g_zmq_notification_interface != nullptr ) {
40
40
for (const auto * n : g_zmq_notification_interface->GetActiveNotifiers ()) {
@@ -47,6 +47,8 @@ UniValue getzmqnotifications(const JSONRPCRequest& request)
47
47
}
48
48
49
49
return result;
50
+ },
51
+ };
50
52
}
51
53
52
54
const CRPCCommand commands[] =
You can’t perform that action at this time.
0 commit comments