Changeset View
Changeset View
Standalone View
Standalone View
src/test/excessiveblock_tests.cpp
Show All 13 Lines | |||||
#include <limits> | #include <limits> | ||||
#include <string> | #include <string> | ||||
extern UniValue CallRPC(const std::string &args, const util::Ref &context); | extern UniValue CallRPC(const std::string &args, const util::Ref &context); | ||||
class ExcessiveBlockTestingSetup : public TestingSetup { | class ExcessiveBlockTestingSetup : public TestingSetup { | ||||
public: | public: | ||||
ExcessiveBlockTestingSetup() | |||||
: TestingSetup(CBaseChainParams::MAIN, | |||||
{"-deprecatedrpc=setexcessiveblock"}){}; | |||||
UniValue CallRPC(const std::string &args) { | UniValue CallRPC(const std::string &args) { | ||||
const util::Ref context{m_node}; | const util::Ref context{m_node}; | ||||
return ::CallRPC(args, context); | return ::CallRPC(args, context); | ||||
} | } | ||||
}; | }; | ||||
BOOST_FIXTURE_TEST_SUITE(excessiveblock_tests, ExcessiveBlockTestingSetup) | BOOST_FIXTURE_TEST_SUITE(excessiveblock_tests, ExcessiveBlockTestingSetup) | ||||
▲ Show 20 Lines • Show All 48 Lines • Show Last 20 Lines |