aboutsummaryrefslogtreecommitdiff
path: root/src/test/txvalidationcache_tests.cpp
diff options
context:
space:
mode:
authorBtcDrak <btcdrak@gmail.com>2016-12-07 20:22:07 +0000
committerBtcDrak <btcdrak@gmail.com>2016-12-08 20:11:51 +0000
commitdab207e4e694c6980336f59817d6c9af83a46fa2 (patch)
treeebcec35326d2681f2595c855c66d1affd21beb6c /src/test/txvalidationcache_tests.cpp
parentc5d746ace7c7bc2884c9eefa6c4c0b2c4f89cfb5 (diff)
Preserve tx version=1 for certain tests
Without this change, the tests would be affected by default tx version increases.
Diffstat (limited to 'src/test/txvalidationcache_tests.cpp')
-rw-r--r--src/test/txvalidationcache_tests.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/test/txvalidationcache_tests.cpp b/src/test/txvalidationcache_tests.cpp
index 55b4d28fb2..9f58f004d5 100644
--- a/src/test/txvalidationcache_tests.cpp
+++ b/src/test/txvalidationcache_tests.cpp
@@ -39,6 +39,7 @@ BOOST_FIXTURE_TEST_CASE(tx_mempool_block_doublespend, TestChain100Setup)
spends.resize(2);
for (int i = 0; i < 2; i++)
{
+ spends[i].nVersion = 1;
spends[i].vin.resize(1);
spends[i].vin[0].prevout.hash = coinbaseTxns[0].GetHash();
spends[i].vin[0].prevout.n = 0;