diff options
| author | Pieter Wuille <[email protected]> | 2015-12-27 19:49:08 +0100 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2016-06-22 15:43:00 +0200 |
| commit | 3dd410294d42f251e4808ef1dfcfcd64817edbac (patch) | |
| tree | d6c5146772069c84ad8edbef9fce968b33d54924 /src/test/sighash_tests.cpp | |
| parent | Refactor script validation to observe amounts (diff) | |
| download | discoin-3dd410294d42f251e4808ef1dfcfcd64817edbac.tar.xz discoin-3dd410294d42f251e4808ef1dfcfcd64817edbac.zip | |
BIP143: Verification logic
Includes simplifications by Eric Lombrozo.
Diffstat (limited to 'src/test/sighash_tests.cpp')
| -rw-r--r-- | src/test/sighash_tests.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/sighash_tests.cpp b/src/test/sighash_tests.cpp index 375accbac..4a48347b7 100644 --- a/src/test/sighash_tests.cpp +++ b/src/test/sighash_tests.cpp @@ -143,7 +143,7 @@ BOOST_AUTO_TEST_CASE(sighash_test) uint256 sh, sho; sho = SignatureHashOld(scriptCode, txTo, nIn, nHashType); - sh = SignatureHash(scriptCode, txTo, nIn, nHashType); + sh = SignatureHash(scriptCode, txTo, nIn, nHashType, 0, SIGVERSION_BASE); #if defined(PRINT_SIGHASH_JSON) CDataStream ss(SER_NETWORK, PROTOCOL_VERSION); ss << txTo; @@ -209,7 +209,7 @@ BOOST_AUTO_TEST_CASE(sighash_from_data) continue; } - sh = SignatureHash(scriptCode, tx, nIn, nHashType); + sh = SignatureHash(scriptCode, tx, nIn, nHashType, 0, SIGVERSION_BASE); BOOST_CHECK_MESSAGE(sh.GetHex() == sigHashHex, strTest); } } |