test: Add extra_args argument to TestChain100Setup constructor

This will be needed in a later commit.
This commit is contained in:
MarcoFalke 2021-08-27 15:21:07 +02:00
parent faa46986aa
commit fadb2ef2fa
No known key found for this signature in database
GPG Key ID: CE2B75697E69A548
2 changed files with 4 additions and 3 deletions

View File

@ -205,7 +205,8 @@ TestingSetup::TestingSetup(const std::string& chainName, const std::vector<const
} }
} }
TestChain100Setup::TestChain100Setup() TestChain100Setup::TestChain100Setup(const std::vector<const char*>& extra_args)
: TestingSetup{CBaseChainParams::REGTEST, extra_args}
{ {
SetMockTime(1598887952); SetMockTime(1598887952);
constexpr std::array<unsigned char, 32> vchKey = { constexpr std::array<unsigned char, 32> vchKey = {

View File

@ -113,8 +113,8 @@ class CScript;
/** /**
* Testing fixture that pre-creates a 100-block REGTEST-mode block chain * Testing fixture that pre-creates a 100-block REGTEST-mode block chain
*/ */
struct TestChain100Setup : public RegTestingSetup { struct TestChain100Setup : public TestingSetup {
TestChain100Setup(); TestChain100Setup(const std::vector<const char*>& extra_args = {});
/** /**
* Create a new block with just given transactions, coinbase paying to * Create a new block with just given transactions, coinbase paying to