Changeset View
Changeset View
Standalone View
Standalone View
src/test/test_bitcoin.cpp
Show All 11 Lines | |||||
#include "consensus/validation.h" | #include "consensus/validation.h" | ||||
#include "key.h" | #include "key.h" | ||||
#include "miner.h" | #include "miner.h" | ||||
#include "net_processing.h" | #include "net_processing.h" | ||||
#include "pubkey.h" | #include "pubkey.h" | ||||
#include "random.h" | #include "random.h" | ||||
#include "rpc/register.h" | #include "rpc/register.h" | ||||
#include "rpc/server.h" | #include "rpc/server.h" | ||||
#include "script/scriptcache.h" | |||||
#include "script/sigcache.h" | #include "script/sigcache.h" | ||||
#include "txdb.h" | #include "txdb.h" | ||||
#include "txmempool.h" | #include "txmempool.h" | ||||
#include "ui_interface.h" | #include "ui_interface.h" | ||||
#include "validation.h" | #include "validation.h" | ||||
#include "test/testutil.h" | #include "test/testutil.h" | ||||
Show All 19 Lines | |||||
extern bool fPrintToConsole; | extern bool fPrintToConsole; | ||||
extern void noui_connect(); | extern void noui_connect(); | ||||
BasicTestingSetup::BasicTestingSetup(const std::string &chainName) { | BasicTestingSetup::BasicTestingSetup(const std::string &chainName) { | ||||
ECC_Start(); | ECC_Start(); | ||||
SetupEnvironment(); | SetupEnvironment(); | ||||
SetupNetworking(); | SetupNetworking(); | ||||
InitSignatureCache(); | InitSignatureCache(); | ||||
InitScriptExecutionCache(); | |||||
// Don't want to write to debug.log file. | // Don't want to write to debug.log file. | ||||
fPrintToDebugLog = false; | fPrintToDebugLog = false; | ||||
fCheckBlockIndex = true; | fCheckBlockIndex = true; | ||||
SelectParams(chainName); | SelectParams(chainName); | ||||
noui_connect(); | noui_connect(); | ||||
// Set config parameters to default. | // Set config parameters to default. | ||||
GlobalConfig config; | GlobalConfig config; | ||||
▲ Show 20 Lines • Show All 200 Lines • Show Last 20 Lines |