diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2015-06-10 09:47:53 +0200 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2015-06-10 09:48:00 +0200 |
commit | 9c93ee5ceb6001345a813ff2974b8d2692028037 (patch) | |
tree | c1df4b1a2af20fa0816f7fa38ddc3977c2c70646 /src/test/miner_tests.cpp | |
parent | d9a94b70096dee0428a24adba07c0f2608ce3ee7 (diff) | |
parent | efd44440d86ce416f41b48a01bcb471d0d92176c (diff) |
Merge pull request #6222
efd4444 Explicitly set tx.nVersion for the genesis block and mining tests (Mark Friedenbach)
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 9e4fd8513e..212be0d2d6 100644 --- a/src/test/miner_tests.cpp +++ b/src/test/miner_tests.cpp @@ -74,6 +74,7 @@ BOOST_AUTO_TEST_CASE(CreateNewBlock_validity) pblock->nVersion = 1; pblock->nTime = chainActive.Tip()->GetMedianTimePast()+1; CMutableTransaction txCoinbase(pblock->vtx[0]); + txCoinbase.nVersion = 1; txCoinbase.vin[0].scriptSig = CScript(); txCoinbase.vin[0].scriptSig.push_back(blockinfo[i].extranonce); txCoinbase.vin[0].scriptSig.push_back(chainActive.Height()); |