Skip to content

Commit 4534eb8

Browse files
knstkwvg
andcommitted
refactor: re-use existing strings for rpc help for quorum dkginfo output
Co-authored-by: Kittywhiskers Van Gogh <63189531+kwvg@users.noreply.github.com>
1 parent 2629a3b commit 4534eb8

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/rpc/quorums.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1002,16 +1002,16 @@ static RPCHelpMan quorum_dkginfo()
10021002
{
10031003
{RPCResult::Type::OBJ, "", "",
10041004
{
1005-
{RPCResult::Type::NUM, "llmqType", "The type of the quorum"},
1005+
GetRpcResult("llmqType"),
10061006
{RPCResult::Type::STR, "llmqTypeName", "The name of the quorum type"},
1007-
{RPCResult::Type::NUM, "quorumIndex", "The quorum index within the DKG interval"},
1007+
GetRpcResult("quorumIndex"),
10081008
{RPCResult::Type::NUM, "quorumHeight", "The height at which the quorum session starts"},
10091009
{RPCResult::Type::NUM, "blocksUntilStart", "The number of blocks until the quorum session starts"},
1010-
{RPCResult::Type::STR_HEX, "proTxHash", "The proTxHash this entry was computed for"},
1010+
GetRpcResult("proTxHash"),
10111011
{RPCResult::Type::BOOL, "known", "Whether participation could be determined"},
10121012
{RPCResult::Type::STR, "reason", /*optional=*/true, "Why participation could not be determined"},
10131013
{RPCResult::Type::BOOL, "isMember", /*optional=*/true, "Whether the masternode is a member of the upcoming quorum"},
1014-
{RPCResult::Type::NUM, "memberIndex", /*optional=*/true, "The member index, or -1 if not a member"},
1014+
GetRpcResult("memberIndex"),
10151015
{RPCResult::Type::NUM, "memberCount", /*optional=*/true, "The number of members in the upcoming quorum"},
10161016
{RPCResult::Type::NUM, "workBlockHeight", /*optional=*/true, "The height of the work block used to compute membership"},
10171017
{RPCResult::Type::STR_HEX, "workBlockHash", /*optional=*/true, "The hash of the work block used to compute membership"},

0 commit comments

Comments
 (0)