Skip to content

Commit

Permalink
WHITESPACE ONLY: reindent RPC functions
Browse files Browse the repository at this point in the history
  • Loading branch information
kallewoof committed Jun 19, 2019
1 parent 31599d8 commit e7124e3
Show file tree
Hide file tree
Showing 9 changed files with 2,440 additions and 2,440 deletions.
1,124 changes: 562 additions & 562 deletions src/rpc/blockchain.cpp

Large diffs are not rendered by default.

316 changes: 158 additions & 158 deletions src/rpc/mining.cpp

Large diffs are not rendered by default.

256 changes: 128 additions & 128 deletions src/rpc/misc.cpp

Large diffs are not rendered by default.

270 changes: 135 additions & 135 deletions src/rpc/net.cpp

Large diffs are not rendered by default.

826 changes: 413 additions & 413 deletions src/rpc/rawtransaction.cpp

Large diffs are not rendered by default.

40 changes: 20 additions & 20 deletions src/rpc/server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -177,27 +177,27 @@ UniValue stop(const JSONRPCRequest& jsonRequest)

static UniValue uptime(const JSONRPCRequest& jsonRequest)
{
RPCHelpMan{"uptime",
"\nReturns the total uptime of the server.\n",
{},
RPCResult{
"ttt (numeric) The number of seconds that the server has been running\n"
},
RPCExamples{
HelpExampleCli("uptime", "")
+ HelpExampleRpc("uptime", "")
},
}.Check(jsonRequest);
RPCHelpMan{"uptime",
"\nReturns the total uptime of the server.\n",
{},
RPCResult{
"ttt (numeric) The number of seconds that the server has been running\n"
},
RPCExamples{
HelpExampleCli("uptime", "")
+ HelpExampleRpc("uptime", "")
},
}.Check(jsonRequest);

return GetTime() - GetStartupTime();
}

static UniValue getrpcinfo(const JSONRPCRequest& request)
{
RPCHelpMan{"getrpcinfo",
"\nReturns details of the RPC server.\n",
{},
RPCResult{
RPCHelpMan{"getrpcinfo",
"\nReturns details of the RPC server.\n",
{},
RPCResult{
"{\n"
" \"active_commands\" (array) All active commands\n"
" [\n"
Expand All @@ -207,11 +207,11 @@ static UniValue getrpcinfo(const JSONRPCRequest& request)
" },...\n"
" ]\n"
"}\n"
},
RPCExamples{
HelpExampleCli("getrpcinfo", "")
+ HelpExampleRpc("getrpcinfo", "")},
}.Check(request);
},
RPCExamples{
HelpExampleCli("getrpcinfo", "")
+ HelpExampleRpc("getrpcinfo", "")},
}.Check(request);

LOCK(g_rpc_server_info.mutex);
UniValue active_commands(UniValue::VARR);
Expand Down
336 changes: 168 additions & 168 deletions src/wallet/rpcdump.cpp

Large diffs are not rendered by default.

1,692 changes: 846 additions & 846 deletions src/wallet/rpcwallet.cpp

Large diffs are not rendered by default.

20 changes: 10 additions & 10 deletions src/zmq/zmqrpc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ namespace {

UniValue getzmqnotifications(const JSONRPCRequest& request)
{
RPCHelpMan{"getzmqnotifications",
"\nReturns information about the active ZeroMQ notifications.\n",
{},
RPCResult{
RPCHelpMan{"getzmqnotifications",
"\nReturns information about the active ZeroMQ notifications.\n",
{},
RPCResult{
"[\n"
" { (json object)\n"
" \"type\": \"pubhashtx\", (string) Type of notification\n"
Expand All @@ -27,12 +27,12 @@ UniValue getzmqnotifications(const JSONRPCRequest& request)
" },\n"
" ...\n"
"]\n"
},
RPCExamples{
HelpExampleCli("getzmqnotifications", "")
+ HelpExampleRpc("getzmqnotifications", "")
},
}.Check(request);
},
RPCExamples{
HelpExampleCli("getzmqnotifications", "")
+ HelpExampleRpc("getzmqnotifications", "")
},
}.Check(request);

UniValue result(UniValue::VARR);
if (g_zmq_notification_interface != nullptr) {
Expand Down

0 comments on commit e7124e3

Please sign in to comment.