aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2019-04-10 09:24:20 -0400
committerMarcoFalke <falke.marco@gmail.com>2019-04-10 09:24:22 -0400
commite82f6ad6f270f1f101d8853be32fd11eff4ddfb8 (patch)
tree42d628585313e0ef54c87b5da7573deb4696fd5f /src
parent8c022e8ac401f98c73e6ca62b502b40fc83c3e1f (diff)
parentf4b7a2f2055fa52d5e02c37bed7b46599b960e2e (diff)
downloadbitcoin-e82f6ad6f270f1f101d8853be32fd11eff4ddfb8.tar.xz
Merge #15754: rpc: getrpcinfo docs
f4b7a2f205 rpc: getrpcinfo docs (Ben Carman) Pull request description: Fixes #15731 ACKs for commit f4b7a2: laanwj: utACK f4b7a2f2055fa52d5e02c37bed7b46599b960e2e Tree-SHA512: 45dce83c4bfac2ddf85133a29aee332e9de8f73c15438ce899a2edbcd0d82d4f743753f6699c50cbc62d110fa8c6bc257722447e1090cdd23acbe00f26014ec8
Diffstat (limited to 'src')
-rw-r--r--src/rpc/server.cpp16
1 files changed, 14 insertions, 2 deletions
diff --git a/src/rpc/server.cpp b/src/rpc/server.cpp
index e803fabcc6..276db453cb 100644
--- a/src/rpc/server.cpp
+++ b/src/rpc/server.cpp
@@ -297,8 +297,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()
);
}