Changeset View
Changeset View
Standalone View
Standalone View
src/test/util/setup_common.h
Show First 20 Lines • Show All 125 Lines • ▼ Show 20 Lines | |||||
/** | /** | ||||
* Testing setup that configures a complete environment. | * Testing setup that configures a complete environment. | ||||
*/ | */ | ||||
struct TestingSetup : public ChainTestingSetup { | struct TestingSetup : public ChainTestingSetup { | ||||
bool m_coins_db_in_memory{true}; | bool m_coins_db_in_memory{true}; | ||||
bool m_block_tree_db_in_memory{true}; | bool m_block_tree_db_in_memory{true}; | ||||
void LoadVerifyActivateChainstate(const Config &config); | void LoadVerifyActivateChainstate(); | ||||
explicit TestingSetup(const std::string &chainName = CBaseChainParams::MAIN, | explicit TestingSetup(const std::string &chainName = CBaseChainParams::MAIN, | ||||
const std::vector<const char *> &extra_args = {}, | const std::vector<const char *> &extra_args = {}, | ||||
const bool coins_db_in_memory = true, | const bool coins_db_in_memory = true, | ||||
const bool block_tree_db_in_memory = true); | const bool block_tree_db_in_memory = true); | ||||
}; | }; | ||||
/** Identical to TestingSetup, but chain set to regtest */ | /** Identical to TestingSetup, but chain set to regtest */ | ||||
▲ Show 20 Lines • Show All 160 Lines • Show Last 20 Lines |