diff options
| author | Pieter Wuille <[email protected]> | 2016-11-18 12:15:01 -0800 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2016-11-21 15:01:04 -0800 |
| commit | ad04d1cb35b9612d36078c62213bdbb13f56d73d (patch) | |
| tree | 7ccd702d3a83693cf5ad21ff1e1ce9ca6d6309f7 /src/test/miner_tests.cpp | |
| parent | Merge #8872: Remove block-request logic from INV message processing (diff) | |
| download | discoin-ad04d1cb35b9612d36078c62213bdbb13f56d73d.tar.xz discoin-ad04d1cb35b9612d36078c62213bdbb13f56d73d.zip | |
Always add default_witness_commitment with GBT client support
Diffstat (limited to 'src/test/miner_tests.cpp')
| -rw-r--r-- | src/test/miner_tests.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/test/miner_tests.cpp b/src/test/miner_tests.cpp index aea892093..85a2e907c 100644 --- a/src/test/miner_tests.cpp +++ b/src/test/miner_tests.cpp @@ -214,6 +214,7 @@ BOOST_AUTO_TEST_CASE(CreateNewBlock_validity) txCoinbase.vin[0].scriptSig = CScript(); txCoinbase.vin[0].scriptSig.push_back(blockinfo[i].extranonce); txCoinbase.vin[0].scriptSig.push_back(chainActive.Height()); + txCoinbase.vout.resize(1); // Ignore the (optional) segwit commitment added by CreateNewBlock (as the hardcoded nonces don't account for this) txCoinbase.vout[0].scriptPubKey = CScript(); pblock->vtx[0] = MakeTransactionRef(std::move(txCoinbase)); if (txFirst.size() == 0) |