Skip to content

Commit fadb2ef

Browse files
author
MarcoFalke
committed
test: Add extra_args argument to TestChain100Setup constructor
This will be needed in a later commit.
1 parent faa4698 commit fadb2ef

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/test/util/setup_common.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,8 @@ TestingSetup::TestingSetup(const std::string& chainName, const std::vector<const
205205
}
206206
}
207207

208-
TestChain100Setup::TestChain100Setup()
208+
TestChain100Setup::TestChain100Setup(const std::vector<const char*>& extra_args)
209+
: TestingSetup{CBaseChainParams::REGTEST, extra_args}
209210
{
210211
SetMockTime(1598887952);
211212
constexpr std::array<unsigned char, 32> vchKey = {

src/test/util/setup_common.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,8 @@ class CScript;
113113
/**
114114
* Testing fixture that pre-creates a 100-block REGTEST-mode block chain
115115
*/
116-
struct TestChain100Setup : public RegTestingSetup {
117-
TestChain100Setup();
116+
struct TestChain100Setup : public TestingSetup {
117+
TestChain100Setup(const std::vector<const char*>& extra_args = {});
118118

119119
/**
120120
* Create a new block with just given transactions, coinbase paying to

0 commit comments

Comments
 (0)