test: Add extra_args argument to TestChain100Setup constructor

This will be needed in a later commit.
This commit is contained in:
MarcoFalke committed 2021-09-16 18:52:49 +02:00
1 parent faa46986aa
commit fadb2ef2fa
2 files changed
+4 -3

No files matched your search

+2 -1
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 = {
+2 -2
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