Skip to content

Commit 1b6b78f

Browse files
Update src/rpc/evo.cpp
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent 287ca02 commit 1b6b78f

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

src/rpc/evo.cpp

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1405,15 +1405,16 @@ static RPCHelpMan protx_list()
14051405
{"height", RPCArg::Type::NUM, RPCArg::DefaultHint{"current chain-tip"}, ""},
14061406
},
14071407
RPCResult{
1408-
RPCResult::Type::ARR, "", "list of masternodes",
1408+
RPCResult{
1409+
RPCResult::Type::ARR, "", "List of masternodes",
14091410
{
1410-
{RPCResult::Type::OBJ, "", "",
1411-
{
1412-
// TODO: list fields of output for RPC help instead ELISION
1413-
{RPCResult::Type::ELISION, "", ""}
1414-
}},
1415-
},
1416-
},
1411+
RPCResult{"when detailed=false", RPCResult::Type::STR, "", "ProTx hash"},
1412+
RPCResult{"when detailed=true", RPCResult::Type::OBJ, "", "",
1413+
{
1414+
// TODO: document fields of the detailed entry
1415+
{RPCResult::Type::ELISION, "", ""}
1416+
}},
1417+
}},
14171418
RPCExamples{""},
14181419
[&](const RPCHelpMan& self, const JSONRPCRequest& request) -> UniValue
14191420
{

0 commit comments

Comments
 (0)