aboutsummaryrefslogtreecommitdiff
path: root/src/test/hash_tests.cpp
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2016-12-15 17:03:23 +0100
committerWladimir J. van der Laan <laanwj@gmail.com>2016-12-15 17:03:31 +0100
commit1eef038b1bcf7852a1c9912db429467255d2a036 (patch)
treea3f74946fba55928b8be76d029f7992017f8bad8 /src/test/hash_tests.cpp
parent5bc209c73fb6109829f24a6e9574ce112432b560 (diff)
parentc5c92c46fbe1ebc9ab411ae06d5416ff91f9f340 (diff)
Merge #7562: Bump transaction version default to 2
c5c92c4 Update python tests for default tx version=2 (BtcDrak) dab207e Preserve tx version=1 for certain tests (BtcDrak) c5d746a tiny test fix for mempool_tests (Alex Morcos) 1f0ca1a Bump default transaction version to 2 (BtcDrak)
Diffstat (limited to 'src/test/hash_tests.cpp')
-rw-r--r--src/test/hash_tests.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/test/hash_tests.cpp b/src/test/hash_tests.cpp
index fa9624f13d..8be9c580c4 100644
--- a/src/test/hash_tests.cpp
+++ b/src/test/hash_tests.cpp
@@ -124,7 +124,11 @@ BOOST_AUTO_TEST_CASE(siphash)
}
CHashWriter ss(SER_DISK, CLIENT_VERSION);
- ss << CTransaction();
+ CMutableTransaction tx;
+ // Note these tests were originally written with tx.nVersion=1
+ // and the test would be affected by default tx version bumps if not fixed.
+ tx.nVersion = 1;
+ ss << tx;
BOOST_CHECK_EQUAL(SipHashUint256(1, 2, ss.GetHash()), 0x79751e980c2a0a35ULL);
}