Changeset View
Changeset View
Standalone View
Standalone View
src/rpc/blockchain.cpp
Show First 20 Lines • Show All 2,206 Lines • ▼ Show 20 Lines | RPCHelpMan{ | ||||
{RPCResult::Type::NUM, "txs", | {RPCResult::Type::NUM, "txs", | ||||
"The number of transactions (excluding coinbase)"}, | "The number of transactions (excluding coinbase)"}, | ||||
{RPCResult::Type::NUM, "utxo_increase", | {RPCResult::Type::NUM, "utxo_increase", | ||||
"The increase/decrease in the number of unspent outputs"}, | "The increase/decrease in the number of unspent outputs"}, | ||||
{RPCResult::Type::NUM, "utxo_size_inc", | {RPCResult::Type::NUM, "utxo_size_inc", | ||||
"The increase/decrease in size for the utxo index (not " | "The increase/decrease in size for the utxo index (not " | ||||
"discounting op_return and similar)"}, | "discounting op_return and similar)"}, | ||||
}}, | }}, | ||||
RPCExamples{HelpExampleCli("getblockstats", | RPCExamples{ | ||||
"1000 '[\"minfeerate\",\"avgfeerate\"]'") + | HelpExampleCli( | ||||
"getblockstats", | |||||
R"('"00000000c937983704a73af28acdec37b049d214adbda81d7e2a3dd146f6ed09"' '["minfeerate","avgfeerate"]')") + | |||||
HelpExampleCli("getblockstats", | |||||
R"(1000 '["minfeerate","avgfeerate"]')") + | |||||
HelpExampleRpc( | |||||
"getblockstats", | |||||
R"("00000000c937983704a73af28acdec37b049d214adbda81d7e2a3dd146f6ed09", ["minfeerate","avgfeerate"])") + | |||||
HelpExampleRpc("getblockstats", | HelpExampleRpc("getblockstats", | ||||
"1000 '[\"minfeerate\",\"avgfeerate\"]'")}, | R"(1000, ["minfeerate","avgfeerate"])")}, | ||||
} | } | ||||
.Check(request); | .Check(request); | ||||
LOCK(cs_main); | LOCK(cs_main); | ||||
CBlockIndex *pindex; | CBlockIndex *pindex; | ||||
if (request.params[0].isNum()) { | if (request.params[0].isNum()) { | ||||
const int height = request.params[0].get_int(); | const int height = request.params[0].get_int(); | ||||
▲ Show 20 Lines • Show All 746 Lines • Show Last 20 Lines |