Changeset View
Changeset View
Standalone View
Standalone View
src/test/util/setup_common.h
Show First 20 Lines • Show All 87 Lines • ▼ Show 20 Lines | |||||
/** | /** | ||||
* Testing setup that configures a complete environment. | * Testing setup that configures a complete environment. | ||||
* Included are coins database, script check threads setup. | * Included are coins database, script check threads setup. | ||||
*/ | */ | ||||
struct TestingSetup : public BasicTestingSetup { | struct TestingSetup : public BasicTestingSetup { | ||||
NodeContext m_node; | NodeContext m_node; | ||||
boost::thread_group threadGroup; | boost::thread_group threadGroup; | ||||
CScheduler scheduler; | |||||
explicit TestingSetup( | explicit TestingSetup( | ||||
const std::string &chainName = CBaseChainParams::MAIN); | const std::string &chainName = CBaseChainParams::MAIN); | ||||
~TestingSetup(); | ~TestingSetup(); | ||||
}; | }; | ||||
/** Identical to TestingSetup, but chain set to regtest */ | /** Identical to TestingSetup, but chain set to regtest */ | ||||
struct RegTestingSetup : public TestingSetup { | struct RegTestingSetup : public TestingSetup { | ||||
▲ Show 20 Lines • Show All 76 Lines • Show Last 20 Lines |