diff options
| author | Wladimir J. van der Laan <[email protected]> | 2016-11-25 08:25:30 +0100 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2016-11-25 08:26:25 +0100 |
| commit | d932159f3467cc197caaf281f34f3324e6b5bea8 (patch) | |
| tree | 060c7278581eeeeaade71153af302c9239751fdb /src/test/miner_tests.cpp | |
| parent | Merge #9216: Doc: Fix copypasted comment (diff) | |
| parent | [qa] Test getblocktemplate default_witness_commitment (diff) | |
| download | discoin-d932159f3467cc197caaf281f34f3324e6b5bea8.tar.xz discoin-d932159f3467cc197caaf281f34f3324e6b5bea8.zip | |
Merge #9189: Always add default_witness_commitment with GBT client support
95f4a03 [qa] Test getblocktemplate default_witness_commitment (Suhas Daftuar)
ad04d1c Always add default_witness_commitment with GBT client support (Pieter Wuille)
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) |