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 @@ -1062,9 +1062,9 @@ static UniValue voteraw(const JSONRPCRequest& request)
1062
1062
}
1063
1063
}
1064
1064
1065
- static UniValue getgovernanceinfo (const JSONRPCRequest& request )
1065
+ static RPCHelpMan getgovernanceinfo ()
1066
1066
{
1067
- RPCHelpMan{" getgovernanceinfo" ,
1067
+ return RPCHelpMan{" getgovernanceinfo" ,
1068
1068
" Returns an object containing governance parameters.\n " ,
1069
1069
{},
1070
1070
RPCResult{
@@ -1083,8 +1083,8 @@ static UniValue getgovernanceinfo(const JSONRPCRequest& request)
1083
1083
HelpExampleCli (" getgovernanceinfo" , " " )
1084
1084
+ HelpExampleRpc (" getgovernanceinfo" , " " )
1085
1085
},
1086
- }. Check ( request);
1087
-
1086
+ [&]( const RPCHelpMan& self, const JSONRPCRequest& request) -> UniValue
1087
+ {
1088
1088
1089
1089
int nLastSuperblock = 0 , nNextSuperblock = 0 ;
1090
1090
@@ -1108,6 +1108,8 @@ static UniValue getgovernanceinfo(const JSONRPCRequest& request)
1108
1108
obj.pushKV (" governancebudget" , ValueFromAmount (CSuperblock::GetPaymentsLimit (chainman.ActiveChain (), nNextSuperblock)));
1109
1109
1110
1110
return obj;
1111
+ },
1112
+ };
1111
1113
}
1112
1114
1113
1115
static UniValue getsuperblockbudget (const JSONRPCRequest& request)
You can’t perform that action at this time.
0 commit comments