Skip to content

Commit 809aae7

Browse files
thephezUdjinM6
authored andcommitted
RPC docs helper updates (#2949)
* RPC - Update gobject description to match other multi-command RPCs * RPC - Update masternodelist to avoid returning dupe RPC name from help * RPC - Make spacing consistent in gobject/masternode help
1 parent 09d66c7 commit 809aae7

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/rpc/governance.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -871,8 +871,8 @@ UniValue gobject_getcurrentvotes(const JSONRPCRequest& request)
871871
[[ noreturn ]] void gobject_help()
872872
{
873873
throw std::runtime_error(
874-
"gobject \"command\"...\n"
875-
"Manage governance objects\n"
874+
"gobject \"command\" ...\n"
875+
"Set of commands to manage governance objects.\n"
876876
"\nAvailable commands:\n"
877877
" check - Validate governance object data (proposal only)\n"
878878
#ifdef ENABLE_WALLET

src/rpc/masternode.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,8 @@ UniValue getpoolinfo(const JSONRPCRequest& request)
125125
void masternode_list_help()
126126
{
127127
throw std::runtime_error(
128-
"masternode list ( \"mode\" \"filter\" )\n"
129-
"Get a list of masternodes in different modes. This call is identical to masternodelist call.\n"
128+
"masternodelist ( \"mode\" \"filter\" )\n"
129+
"Get a list of masternodes in different modes. This call is identical to 'masternode list' call.\n"
130130
"\nArguments:\n"
131131
"1. \"mode\" (string, optional/required to use filter, defaults = json) The mode to run list in\n"
132132
"2. \"filter\" (string, optional) Filter results. Partial match by outpoint by default in all modes,\n"
@@ -420,7 +420,7 @@ UniValue masternode_winners(const JSONRPCRequest& request)
420420
[[ noreturn ]] void masternode_help()
421421
{
422422
throw std::runtime_error(
423-
"masternode \"command\"...\n"
423+
"masternode \"command\" ...\n"
424424
"Set of commands to execute masternode related actions\n"
425425
"\nArguments:\n"
426426
"1. \"command\" (string or set of strings, required) The command to execute\n"

0 commit comments

Comments
 (0)