Changeset View
Changeset View
Standalone View
Standalone View
src/rpc/abc.cpp
Show All 34 Lines | static UniValue setexcessiveblock(Config &config, | ||||
if (request.fHelp || request.params.size() != 1) { | if (request.fHelp || request.params.size() != 1) { | ||||
throw std::runtime_error( | throw std::runtime_error( | ||||
RPCHelpMan{ | RPCHelpMan{ | ||||
"setexcessiveblock", | "setexcessiveblock", | ||||
"\nSet the excessive block size. Excessive blocks will not be " | "\nSet the excessive block size. Excessive blocks will not be " | ||||
"used in the active chain or relayed. This discourages the " | "used in the active chain or relayed. This discourages the " | ||||
"propagation of blocks that you consider excessively large.", | "propagation of blocks that you consider excessively large.", | ||||
{ | { | ||||
{"blockSize", RPCArg::Type::NUM, false}, | {"blockSize", RPCArg::Type::NUM, /* opt */ false, | ||||
/* default_value */ "", | |||||
"Excessive block size in bytes. Must be greater than " + | |||||
std::to_string(LEGACY_MAX_BLOCK_SIZE) + "."}, | |||||
}} | }} | ||||
.ToString() + | .ToString() + | ||||
"\nArguments\n" | |||||
"1. blockSize (integer, required) Excessive block size in bytes. " | |||||
"Must be greater than " + | |||||
std::to_string(LEGACY_MAX_BLOCK_SIZE) + | |||||
".\n" | |||||
"\nResult\n" | "\nResult\n" | ||||
" blockSize (integer) excessive block size in bytes\n" | " blockSize (integer) excessive block size in bytes\n" | ||||
"\nExamples:\n" + | "\nExamples:\n" + | ||||
HelpExampleCli("setexcessiveblock", "25000000") + | HelpExampleCli("setexcessiveblock", "25000000") + | ||||
HelpExampleRpc("setexcessiveblock", "25000000")); | HelpExampleRpc("setexcessiveblock", "25000000")); | ||||
} | } | ||||
int64_t ebs = 0; | int64_t ebs = 0; | ||||
▲ Show 20 Lines • Show All 43 Lines • Show Last 20 Lines |