diff options
| author | Pieter Wuille <[email protected]> | 2017-10-11 20:25:18 -0700 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2017-11-06 19:29:20 -0800 |
| commit | d618458184742b15a7ab0349127ede7a2946a182 (patch) | |
| tree | 5c08e3162c6ac3f53dd8362fe0ae1b505c5186ad /src/test/test_bitcoin.cpp | |
| parent | Unit tests for always-active versionbits. (diff) | |
| download | discoin-d618458184742b15a7ab0349127ede7a2946a182.tar.xz discoin-d618458184742b15a7ab0349127ede7a2946a182.zip | |
Have SegWit active by default
Diffstat (limited to 'src/test/test_bitcoin.cpp')
| -rw-r--r-- | src/test/test_bitcoin.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/test/test_bitcoin.cpp b/src/test/test_bitcoin.cpp index 79bc48a11..8a7140d52 100644 --- a/src/test/test_bitcoin.cpp +++ b/src/test/test_bitcoin.cpp @@ -106,6 +106,9 @@ 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. + UpdateVersionBitsParameters(Consensus::DEPLOYMENT_SEGWIT, 0, Consensus::BIP9Deployment::NO_TIMEOUT); // Generate a 100-block chain: coinbaseKey.MakeNewKey(true); CScript scriptPubKey = CScript() << ToByteVector(coinbaseKey.GetPubKey()) << OP_CHECKSIG; |