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 1313
1414namespace {
1515
16- UniValue getzmqnotifications (const JSONRPCRequest& request )
16+ static RPCHelpMan getzmqnotifications ()
1717{
18- RPCHelpMan{" getzmqnotifications" ,
18+ return RPCHelpMan{" getzmqnotifications" ,
1919 " \n Returns information about the active ZeroMQ notifications.\n " ,
2020 {},
2121 RPCResult{
@@ -33,8 +33,8 @@ UniValue getzmqnotifications(const JSONRPCRequest& request)
3333 HelpExampleCli (" getzmqnotifications" , " " )
3434 + HelpExampleRpc (" getzmqnotifications" , " " )
3535 },
36- }. Check ( request);
37-
36+ [&]( const RPCHelpMan& self, const JSONRPCRequest& request) -> UniValue
37+ {
3838 UniValue result (UniValue::VARR);
3939 if (g_zmq_notification_interface != nullptr ) {
4040 for (const auto * n : g_zmq_notification_interface->GetActiveNotifiers ()) {
@@ -47,6 +47,8 @@ UniValue getzmqnotifications(const JSONRPCRequest& request)
4747 }
4848
4949 return result;
50+ },
51+ };
5052}
5153
5254const CRPCCommand commands[] =
You can’t perform that action at this time.
0 commit comments