Skip to content

Commit 8e5bed7

Browse files
committed
rpc: Named arguments for misc calls
>>> backports bitcoin/bitcoin@fba1a61
1 parent 4b2b980 commit 8e5bed7

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

src/rpc/misc.cpp

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -762,20 +762,20 @@ UniValue echo(const JSONRPCRequest& request)
762762
}
763763

764764
static const CRPCCommand commands[] =
765-
{ // category name actor (function) okSafeMode
766-
// --------------------- ------------------------ ----------------------- ----------
767-
{ "control", "getinfo", &getinfo, true }, /* uses wallet if enabled */
768-
{ "control", "mnsync", &mnsync, true },
769-
{ "control", "spork", &spork, true },
770-
{ "control", "getmemoryinfo", &getmemoryinfo, true },
771-
{ "util", "validateaddress", &validateaddress, true }, /* uses wallet if enabled */
772-
{ "util", "createmultisig", &createmultisig, true },
773-
{ "util", "logging", &logging, true },
774-
{ "util", "verifymessage", &verifymessage, true },
765+
{ // category name actor (function) okSafe argNames
766+
// --------------------- ------------------------ ----------------------- ------ --------
767+
{ "control", "getinfo", &getinfo, true, {} }, /* uses wallet if enabled */
768+
{ "control", "mnsync", &mnsync, true, {"mode"} },
769+
{ "control", "spork", &spork, true, {"name","value"} },
770+
{ "control", "getmemoryinfo", &getmemoryinfo, true, {} },
771+
{ "util", "validateaddress", &validateaddress, true, {"pivxaddress"} }, /* uses wallet if enabled */
772+
{ "util", "createmultisig", &createmultisig, true, {"nrequired","keys"} },
773+
{ "util", "logging", &logging, true, {"include", "exclude"} },
774+
{ "util", "verifymessage", &verifymessage, true, {"pivxaddress","signature","message"} },
775775

776776
/* Not shown in help */
777-
{ "hidden", "setmocktime", &setmocktime, true },
778-
{ "hidden", "echo", &echo, true, {"arg0","arg1","arg2","arg3","arg4","arg5","arg6","arg7","arg8","arg9"}},
777+
{ "hidden", "setmocktime", &setmocktime, true, {"timestamp"} },
778+
{ "hidden", "echo", &echo, true, {"arg0","arg1","arg2","arg3","arg4","arg5","arg6","arg7","arg8","arg9"}},
779779
};
780780

781781
void RegisterMiscRPCCommands(CRPCTable &tableRPC)

0 commit comments

Comments
 (0)