12 #include <validation.h> 20 "Return the excessive block size.",
37 "DEPRECATED. Set the excessive block size. Excessive blocks will not " 38 "be used in the active chain or relayed. This discourages the " 39 "propagation of blocks that you consider excessively large.",
42 "Excessive block size in bytes. Must be greater than " +
56 "The setexcessiveblock RPC is deprecated and will be removed " 57 "in a future version. Use the -deprecatedrpc=setexcessiveblock " 58 "option to continue using it."));
65 "Invalid parameter, excessiveblock must be an integer"));
75 "Invalid parameter, excessiveblock must be larger than ") +
88 std::ostringstream ret;
89 ret <<
"Excessive Block set to " << ebs <<
" bytes.";
103 for (
unsigned int vcidx = 0; vcidx <
ARRAYLEN(commands); vcidx++) {
bool IsDeprecatedRPCEnabled(const ArgsManager &args, const std::string &method)
Bitcoin RPC command dispatcher.
static UniValue setexcessiveblock(Config &config, const JSONRPCRequest &request)
#define ARRAYLEN(array)
Utilities for converting data from/to strings.
int64_t get_int64() const
bool appendCommand(const std::string &name, const CRPCCommand *pcmd)
Appends a CRPCCommand to the dispatch table.
Invalid, missing or duplicate parameter.
static UniValue getexcessiveblock(const Config &config, const JSONRPCRequest &request)
std::string ToString(const T &t)
Locale-independent version of std::to_string.
std::string HelpExampleRpc(const std::string &methodname, const std::string &args)
UniValue JSONRPCError(int code, const std::string &message)
virtual uint64_t GetMaxBlockSize() const =0
RecursiveMutex cs_main
Global state.
bool pushKV(const std::string &key, const UniValue &val)
std::string HelpExampleCli(const std::string &methodname, const std::string &args)
RPC method is deprecated.
static const uint64_t LEGACY_MAX_BLOCK_SIZE
The maximum allowed size for a block, before the UAHF.
void RegisterABCRPCCommands(CRPCTable &t)
Register ABC RPC commands.
virtual bool SetMaxBlockSize(uint64_t maxBlockSize)=0