aboutsummaryrefslogtreecommitdiff
path: root/src/test/util/setup_common.h
diff options
context:
space:
mode:
authorglozow <gloriajzhao@gmail.com>2022-04-20 14:04:42 -0700
committerglozow <gloriajzhao@gmail.com>2022-05-30 16:00:41 -0700
commitd7d9c7b2661d7f4292bfcdc389a806028fa2207d (patch)
tree9354589d541272821d3c6f0196241ab16666fcf3 /src/test/util/setup_common.h
parentb9ef5a10e2fa4609d048db57b99463305455ebe4 (diff)
[test util] add chain name to TestChain100Setup ctor
This allows calling MakeNoLogFileContext<TestChain100Setup>
Diffstat (limited to 'src/test/util/setup_common.h')
-rw-r--r--src/test/util/setup_common.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test/util/setup_common.h b/src/test/util/setup_common.h
index a1b7525cf4..dd01afe087 100644
--- a/src/test/util/setup_common.h
+++ b/src/test/util/setup_common.h
@@ -122,7 +122,8 @@ class CScript;
* Testing fixture that pre-creates a 100-block REGTEST-mode block chain
*/
struct TestChain100Setup : public TestingSetup {
- TestChain100Setup(const std::vector<const char*>& extra_args = {});
+ TestChain100Setup(const std::string& chain_name = CBaseChainParams::REGTEST,
+ const std::vector<const char*>& extra_args = {});
/**
* Create a new block with just given transactions, coinbase paying to