Changeset View
Changeset View
Standalone View
Standalone View
src/test/test_bitcoin.cpp
Show First 20 Lines • Show All 58 Lines • ▼ Show 20 Lines | BasicTestingSetup::BasicTestingSetup(const std::string &chainName) | ||||
InitScriptExecutionCache(); | InitScriptExecutionCache(); | ||||
// Don't want to write to debug.log file. | // Don't want to write to debug.log file. | ||||
GetLogger().m_print_to_file = false; | GetLogger().m_print_to_file = false; | ||||
fCheckBlockIndex = true; | fCheckBlockIndex = true; | ||||
SelectParams(chainName); | SelectParams(chainName); | ||||
noui_connect(); | noui_connect(); | ||||
// Set config parameters to default. | |||||
GlobalConfig config; | |||||
config.SetMaxBlockSize(DEFAULT_MAX_BLOCK_SIZE); | |||||
} | } | ||||
BasicTestingSetup::~BasicTestingSetup() { | BasicTestingSetup::~BasicTestingSetup() { | ||||
fs::remove_all(m_path_root); | fs::remove_all(m_path_root); | ||||
ECC_Stop(); | ECC_Stop(); | ||||
} | } | ||||
fs::path BasicTestingSetup::SetDataDir(const std::string &name) { | fs::path BasicTestingSetup::SetDataDir(const std::string &name) { | ||||
▲ Show 20 Lines • Show All 145 Lines • Show Last 20 Lines |