@@ -1404,7 +1404,16 @@ static RPCHelpMan protx_list()
14041404 {" detailed" , RPCArg::Type::BOOL, RPCArg::Default{false }, " If not specified, only the hashes of the ProTx will be returned." },
14051405 {" height" , RPCArg::Type::NUM, RPCArg::DefaultHint{" current chain-tip" }, " " },
14061406 },
1407- RPCResults{},
1407+ RPCResult{
1408+ RPCResult::Type::ARR, " " , " list of masternodes" ,
1409+ {
1410+ {RPCResult::Type::OBJ, " " , " " ,
1411+ {
1412+ // TODO: list fields of output for RPC help instead ELISION
1413+ {RPCResult::Type::ELISION, " " , " " }
1414+ }},
1415+ },
1416+ },
14081417 RPCExamples{" " },
14091418 [&](const RPCHelpMan& self, const JSONRPCRequest& request) -> UniValue
14101419{
@@ -1645,8 +1654,40 @@ static RPCHelpMan protx_listdiff()
16451654 {" baseBlock" , RPCArg::Type::NUM, RPCArg::Optional::NO, " The starting block height." },
16461655 {" block" , RPCArg::Type::NUM, RPCArg::Optional::NO, " The ending block height." },
16471656 },
1648- RPCResults{},
1649- RPCExamples{" " },
1657+ RPCResult {
1658+ RPCResult::Type::OBJ, " " , " " ,
1659+ {
1660+ {RPCResult::Type::NUM, " baseHeight" , " height of base (starting) block" },
1661+ {RPCResult::Type::NUM, " blockHeight" , " height of target (ending) block" },
1662+ {RPCResult::Type::ARR, " addedMNs" , " added masternodes" ,
1663+ {
1664+ {RPCResult::Type::OBJ, " " , " " ,
1665+ {
1666+ // TODO: list fields of output for RPC help instead ELISION
1667+ {RPCResult::Type::ELISION, " " , " " }
1668+ }},
1669+ },
1670+ },
1671+ {RPCResult::Type::ARR, " removedMns" , " removed masternodes" ,
1672+ {
1673+ {RPCResult::Type::STR_HEX, " protx" , " ProTx of removed masternode" },
1674+ },
1675+ },
1676+ {RPCResult::Type::ARR, " addedMNs" , " added masternodes" ,
1677+ {
1678+ {RPCResult::Type::OBJ, " " , " " ,
1679+ {
1680+ {RPCResult::Type::OBJ, " protx" , " ProTx of updated masternode" ,
1681+ {
1682+ // TODO: list fields of output for RPC help instead ELISION
1683+ {RPCResult::Type::ELISION, " " , " " }
1684+ }},
1685+ }},
1686+ },
1687+ },
1688+ },
1689+ },
1690+ RPCExamples{" " },
16501691 [&](const RPCHelpMan& self, const JSONRPCRequest& request) -> UniValue
16511692{
16521693 const NodeContext& node = EnsureAnyNodeContext (request.context );
@@ -1744,7 +1785,7 @@ static RPCHelpMan protx_help()
17441785 {
17451786 {" command" , RPCArg::Type::STR, RPCArg::Optional::NO, " The command to execute" },
17461787 },
1747- RPCResults{ },
1788+ RPCResult{RPCResult::Type::NONE, " " , " " },
17481789 RPCExamples{" " },
17491790 [&](const RPCHelpMan& self, const JSONRPCRequest& request) -> UniValue
17501791{
@@ -1834,7 +1875,7 @@ static RPCHelpMan bls_help()
18341875 {
18351876 {" command" , RPCArg::Type::STR, RPCArg::Optional::NO, " The command to execute" },
18361877 },
1837- RPCResults{ },
1878+ RPCResult{RPCResult::Type::NONE, " " , " " },
18381879 RPCExamples{" " },
18391880 [&](const RPCHelpMan& self, const JSONRPCRequest& request) -> UniValue
18401881{
0 commit comments