diff options
| author | MarcoFalke <[email protected]> | 2019-04-10 15:58:11 -0400 |
|---|---|---|
| committer | MarcoFalke <[email protected]> | 2019-04-10 15:57:48 -0400 |
| commit | 666696b673c5d3b7ab467a890cafd13ac19be503 (patch) | |
| tree | c84f1d094d4571b5e9a5d9be6fee4b61dada8875 /src/test/test_bitcoin.cpp | |
| parent | Merge #15638: Move-only: Pull wallet code out of libbitcoin_server (diff) | |
| download | discoin-666696b673c5d3b7ab467a890cafd13ac19be503.tar.xz discoin-666696b673c5d3b7ab467a890cafd13ac19be503.zip | |
test: Have segwit always active in (Basic)TestingSetup
Diffstat (limited to 'src/test/test_bitcoin.cpp')
| -rw-r--r-- | src/test/test_bitcoin.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/test/test_bitcoin.cpp b/src/test/test_bitcoin.cpp index b72f15664..9028486a2 100644 --- a/src/test/test_bitcoin.cpp +++ b/src/test/test_bitcoin.cpp @@ -42,9 +42,6 @@ BasicTestingSetup::BasicTestingSetup(const std::string& chainName) InitSignatureCache(); InitScriptExecutionCache(); fCheckBlockIndex = true; - // CreateAndProcessBlock() does not support building SegWit blocks, so don't activate in these tests. - // TODO: fix the code to support SegWit blocks. - gArgs.ForceSetArg("-vbparams", strprintf("segwit:0:%d", (int64_t)Consensus::BIP9Deployment::NO_TIMEOUT)); SelectParams(chainName); noui_connect(); } @@ -115,6 +112,11 @@ TestingSetup::~TestingSetup() TestChain100Setup::TestChain100Setup() : TestingSetup(CBaseChainParams::REGTEST) { + // CreateAndProcessBlock() does not support building SegWit blocks, so don't activate in these tests. + // TODO: fix the code to support SegWit blocks. + gArgs.ForceSetArg("-vbparams", strprintf("segwit:0:%d", (int64_t)Consensus::BIP9Deployment::NO_TIMEOUT)); + SelectParams(CBaseChainParams::REGTEST); + // Generate a 100-block chain: coinbaseKey.MakeNewKey(true); CScript scriptPubKey = CScript() << ToByteVector(coinbaseKey.GetPubKey()) << OP_CHECKSIG; |