Skip to content

Commit 976e4dc

Browse files
committed
feat: replace ELISION to proper doc for RPC gobject_count
1 parent 1d86192 commit 976e4dc

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/rpc/governance.cpp

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,15 @@ static RPCHelpMan gobject_count()
4747
RPCResult{"for mode = json",
4848
RPCResult::Type::OBJ, "", "",
4949
{
50-
// TODO: list fields of output for RPC help instead ELISION
51-
{RPCResult::Type::ELISION, "", ""}
50+
{RPCResult::Type::NUM, "objects_total", "Total number of all governance objects"},
51+
{RPCResult::Type::NUM, "proposals", "Number of governance proposals"},
52+
{RPCResult::Type::NUM, "triggers", "Number of triggers"},
53+
{RPCResult::Type::NUM, "other", "Total number of unknowns governance objects"},
54+
{RPCResult::Type::NUM, "erased", "Number of removed (expired) objects"},
55+
{RPCResult::Type::NUM, "votes", "Total number of votes"},
5256
}
5357
},
54-
RPCResult{"for mode = all", RPCResult::Type::STR, "", "The transaction hash in hex"},
58+
RPCResult{"for mode = all", RPCResult::Type::STR, "", "Human-friendly summary string for proposals and votes"},
5559
},
5660
RPCExamples{""},
5761
[&](const RPCHelpMan& self, const JSONRPCRequest& request) -> UniValue

0 commit comments

Comments
 (0)