Skip to content

Commit e82f6ad

Browse files
author
MarcoFalke
committed
Merge #15754: rpc: getrpcinfo docs
f4b7a2f rpc: getrpcinfo docs (Ben Carman) Pull request description: Fixes #15731 ACKs for commit f4b7a2: laanwj: utACK f4b7a2f Tree-SHA512: 45dce83c4bfac2ddf85133a29aee332e9de8f73c15438ce899a2edbcd0d82d4f743753f6699c50cbc62d110fa8c6bc257722447e1090cdd23acbe00f26014ec8
2 parents 8c022e8 + f4b7a2f commit e82f6ad

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

src/rpc/server.cpp

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -297,8 +297,20 @@ static UniValue getrpcinfo(const JSONRPCRequest& request)
297297
RPCHelpMan{"getrpcinfo",
298298
"\nReturns details of the RPC server.\n",
299299
{},
300-
RPCResults{},
301-
RPCExamples{""},
300+
RPCResult{
301+
"{\n"
302+
" \"active_commands\" (array) All active commands\n"
303+
" [\n"
304+
" { (object) Information about an active command\n"
305+
" \"method\" (string) The name of the RPC command \n"
306+
" \"duration\" (numeric) The running time in microseconds\n"
307+
" },...\n"
308+
" ]\n"
309+
"}\n"
310+
},
311+
RPCExamples{
312+
HelpExampleCli("getrpcinfo", "")
313+
+ HelpExampleRpc("getrpcinfo", "")},
302314
}.ToString()
303315
);
304316
}

0 commit comments

Comments
 (0)