Changeset View
Changeset View
Standalone View
Standalone View
src/test/test_bitcoin.cpp
Show First 20 Lines • Show All 45 Lines • ▼ Show 20 Lines | : m_path_root(fs::temp_directory_path() / "test_bitcoin" / | ||||
int(InsecureRandRange(1 << 30)))) { | int(InsecureRandRange(1 << 30)))) { | ||||
SHA256AutoDetect(); | SHA256AutoDetect(); | ||||
ECC_Start(); | ECC_Start(); | ||||
SetupEnvironment(); | SetupEnvironment(); | ||||
SetupNetworking(); | SetupNetworking(); | ||||
InitSignatureCache(); | InitSignatureCache(); | ||||
InitScriptExecutionCache(); | InitScriptExecutionCache(); | ||||
// Don't want to write to debug.log file. | |||||
GetLogger().m_print_to_file = false; | |||||
fCheckBlockIndex = true; | fCheckBlockIndex = true; | ||||
SelectParams(chainName); | SelectParams(chainName); | ||||
noui_connect(); | noui_connect(); | ||||
} | } | ||||
BasicTestingSetup::~BasicTestingSetup() { | BasicTestingSetup::~BasicTestingSetup() { | ||||
fs::remove_all(m_path_root); | fs::remove_all(m_path_root); | ||||
ECC_Stop(); | ECC_Stop(); | ||||
▲ Show 20 Lines • Show All 151 Lines • Show Last 20 Lines |