Changeset View
Changeset View
Standalone View
Standalone View
src/test/test_bitcoin.h
Show First 20 Lines • Show All 68 Lines • ▼ Show 20 Lines | |||||
}; | }; | ||||
/** | /** | ||||
* Testing setup that configures a complete environment. | * Testing setup that configures a complete environment. | ||||
* Included are data directory, coins database, script check threads setup. | * Included are data directory, coins database, script check threads setup. | ||||
*/ | */ | ||||
class CConnman; | class CConnman; | ||||
class CNode; | class CNode; | ||||
struct CConnmanTest { | |||||
static void AddNode(CNode &node); | |||||
static void ClearNodes(); | |||||
}; | |||||
class PeerLogicValidation; | class PeerLogicValidation; | ||||
struct TestingSetup : public BasicTestingSetup { | struct TestingSetup : public BasicTestingSetup { | ||||
boost::thread_group threadGroup; | boost::thread_group threadGroup; | ||||
CConnman *connman; | |||||
CScheduler scheduler; | CScheduler scheduler; | ||||
std::unique_ptr<PeerLogicValidation> peerLogic; | |||||
explicit TestingSetup( | explicit TestingSetup( | ||||
const std::string &chainName = CBaseChainParams::MAIN); | const std::string &chainName = CBaseChainParams::MAIN); | ||||
~TestingSetup(); | ~TestingSetup(); | ||||
}; | }; | ||||
class CBlock; | class CBlock; | ||||
class CMutableTransaction; | class CMutableTransaction; | ||||
▲ Show 20 Lines • Show All 76 Lines • Show Last 20 Lines |