diff --git a/src/rpc/abc.cpp b/src/rpc/abc.cpp index 48e0881e1..ab480d016 100644 --- a/src/rpc/abc.cpp +++ b/src/rpc/abc.cpp @@ -1,51 +1,46 @@ // Copyright (c) 2017-2020 The Bitcoin developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include -#include #include #include -#include -#include -#include -#include #include static RPCHelpMan getexcessiveblock() { return RPCHelpMan{ "getexcessiveblock", "Return the excessive block size.", {}, RPCResult{RPCResult::Type::OBJ, "", "", { RPCResult{RPCResult::Type::NUM, "", "excessive block size in bytes"}, }}, RPCExamples{HelpExampleCli("getexcessiveblock", "") + HelpExampleRpc("getexcessiveblock", "")}, [&](const RPCHelpMan &self, const Config &config, const JSONRPCRequest &request) -> UniValue { UniValue ret(UniValue::VOBJ); ret.pushKV("excessiveBlockSize", config.GetMaxBlockSize()); return ret; }, }; } void RegisterABCRPCCommands(CRPCTable &t) { // clang-format off static const CRPCCommand commands[] = { // category actor (function) // ------------------ ---------------------- { "network", getexcessiveblock, }, }; // clang-format on for (const auto &c : commands) { t.appendCommand(c.name, &c); } }