aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGavin Andresen <gavinandresen@gmail.com>2012-08-20 10:36:43 -0400
committerGavin Andresen <gavinandresen@gmail.com>2012-08-20 10:46:07 -0400
commit3fcec0d4a0ea9c3cb50a68685a64b2c60946438f (patch)
tree49d80347f8a8ab62209644fcd66c78eea5499466
parentb3a570d158224e6ae6ee72fadd2bf947d7656f23 (diff)
Set block.nVersion to fix miner unit test
-rw-r--r--src/test/miner_tests.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/test/miner_tests.cpp b/src/test/miner_tests.cpp
index 3c6039541e..4558a76a28 100644
--- a/src/test/miner_tests.cpp
+++ b/src/test/miner_tests.cpp
@@ -62,6 +62,7 @@ BOOST_AUTO_TEST_CASE(CreateNewBlock_validity)
std::vector<CTransaction*>txFirst;
for (unsigned int i = 0; i < sizeof(blockinfo)/sizeof(*blockinfo); ++i)
{
+ pblock->nVersion = 1;
pblock->nTime = pindexBest->GetMedianTimePast()+1;
pblock->vtx[0].vin[0].scriptSig = CScript();
pblock->vtx[0].vin[0].scriptSig.push_back(blockinfo[i].extranonce);