From fadb2ef2fa8561882db463f35df9b8a0e9609658 Mon Sep 17 00:00:00 2001 From: MarcoFalke Date: Fri, 27 Aug 2021 15:21:07 +0200 Subject: test: Add extra_args argument to TestChain100Setup constructor This will be needed in a later commit. --- src/test/util/setup_common.cpp | 3 ++- src/test/util/setup_common.h | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'src/test/util') diff --git a/src/test/util/setup_common.cpp b/src/test/util/setup_common.cpp index 3d8bd471da..74dcefe076 100644 --- a/src/test/util/setup_common.cpp +++ b/src/test/util/setup_common.cpp @@ -205,7 +205,8 @@ TestingSetup::TestingSetup(const std::string& chainName, const std::vector& extra_args) + : TestingSetup{CBaseChainParams::REGTEST, extra_args} { SetMockTime(1598887952); constexpr std::array vchKey = { diff --git a/src/test/util/setup_common.h b/src/test/util/setup_common.h index 118ac62290..abc87bb69c 100644 --- a/src/test/util/setup_common.h +++ b/src/test/util/setup_common.h @@ -113,8 +113,8 @@ class CScript; /** * Testing fixture that pre-creates a 100-block REGTEST-mode block chain */ -struct TestChain100Setup : public RegTestingSetup { - TestChain100Setup(); +struct TestChain100Setup : public TestingSetup { + TestChain100Setup(const std::vector& extra_args = {}); /** * Create a new block with just given transactions, coinbase paying to -- cgit v1.2.3