File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -42,9 +42,6 @@ BasicTestingSetup::BasicTestingSetup(const std::string& chainName)
42
42
InitSignatureCache ();
43
43
InitScriptExecutionCache ();
44
44
fCheckBlockIndex = true ;
45
- // CreateAndProcessBlock() does not support building SegWit blocks, so don't activate in these tests.
46
- // TODO: fix the code to support SegWit blocks.
47
- gArgs .ForceSetArg (" -vbparams" , strprintf (" segwit:0:%d" , (int64_t )Consensus::BIP9Deployment::NO_TIMEOUT));
48
45
SelectParams (chainName);
49
46
noui_connect ();
50
47
}
@@ -115,6 +112,11 @@ TestingSetup::~TestingSetup()
115
112
116
113
TestChain100Setup::TestChain100Setup () : TestingSetup(CBaseChainParams::REGTEST)
117
114
{
115
+ // CreateAndProcessBlock() does not support building SegWit blocks, so don't activate in these tests.
116
+ // TODO: fix the code to support SegWit blocks.
117
+ gArgs .ForceSetArg (" -vbparams" , strprintf (" segwit:0:%d" , (int64_t )Consensus::BIP9Deployment::NO_TIMEOUT));
118
+ SelectParams (CBaseChainParams::REGTEST);
119
+
118
120
// Generate a 100-block chain:
119
121
coinbaseKey.MakeNewKey (true );
120
122
CScript scriptPubKey = CScript () << ToByteVector (coinbaseKey.GetPubKey ()) << OP_CHECKSIG;
You can’t perform that action at this time.
0 commit comments