diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2019-04-15 14:28:27 +0200 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2019-04-15 14:29:17 +0200 |
commit | f42ed1442ec2a9b1c0df5c0462886740248c8037 (patch) | |
tree | a378998c3b31f5d7552db43cd52cf3f2bd167e7c | |
parent | 164082c822b0de0a66ff702397c1588a8dc3a257 (diff) | |
parent | 60d46219754692355aef719681a7d80ec38035bc (diff) | |
download | bitcoin-f42ed1442ec2a9b1c0df5c0462886740248c8037.tar.xz |
Merge #15790: [0.18] backport #15754
60d46219754692355aef719681a7d80ec38035bc rpc: getrpcinfo docs (Ben Carman)
Pull request description:
Backports #15754 to the 0.18 branch
#15754 added the help message for `getrpcinfo`
ACKs for commit 60d462:
promag:
utACK 60d4621.
fanquake:
utACK 60d4621
Tree-SHA512: 3c0f0aded2dbd300b1cb5e3a3abb1d84852a165aa6ebb337833f06ba135730192a6e86b58323e4c5eb3a7636268125bea7be05925b5b316220bfa5ac1de4a5f4
-rw-r--r-- | src/rpc/server.cpp | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/src/rpc/server.cpp b/src/rpc/server.cpp index cd90573da0..6ebde86b56 100644 --- a/src/rpc/server.cpp +++ b/src/rpc/server.cpp @@ -296,8 +296,20 @@ static UniValue getrpcinfo(const JSONRPCRequest& request) RPCHelpMan{"getrpcinfo", "\nReturns details of the RPC server.\n", {}, - RPCResults{}, - RPCExamples{""}, + RPCResult{ + "{\n" + " \"active_commands\" (array) All active commands\n" + " [\n" + " { (object) Information about an active command\n" + " \"method\" (string) The name of the RPC command \n" + " \"duration\" (numeric) The running time in microseconds\n" + " },...\n" + " ]\n" + "}\n" + }, + RPCExamples{ + HelpExampleCli("getrpcinfo", "") + + HelpExampleRpc("getrpcinfo", "")}, }.ToString() ); } |