aboutsummaryrefslogtreecommitdiff
path: root/src/test/setup_common.h
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2019-09-24 11:23:19 -0400
committerMarcoFalke <falke.marco@gmail.com>2019-10-30 14:12:45 -0400
commitfa0a731d007a8e76d2740a2e6ead2289de77e475 (patch)
tree53628bb94286781f90cf7c02498463f4e5a87266 /src/test/setup_common.h
parentfa54b3e2485f701aa420c37f09a2859a5b805161 (diff)
test: Add RegTestingSetup to setup_common
Diffstat (limited to 'src/test/setup_common.h')
-rw-r--r--src/test/setup_common.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/test/setup_common.h b/src/test/setup_common.h
index 5731b50e31..465baf90c3 100644
--- a/src/test/setup_common.h
+++ b/src/test/setup_common.h
@@ -76,6 +76,12 @@ struct TestingSetup : public BasicTestingSetup {
~TestingSetup();
};
+/** Identical to TestingSetup, but chain set to regtest */
+struct RegTestingSetup : public TestingSetup {
+ RegTestingSetup()
+ : TestingSetup{CBaseChainParams::REGTEST} {}
+};
+
class CBlock;
struct CMutableTransaction;
class CScript;
@@ -84,7 +90,7 @@ class CScript;
// Testing fixture that pre-creates a
// 100-block REGTEST-mode block chain
//
-struct TestChain100Setup : public TestingSetup {
+struct TestChain100Setup : public RegTestingSetup {
TestChain100Setup();
// Create a new block with just given transactions, coinbase paying to