diff options
| author | Pieter Wuille <[email protected]> | 2012-08-22 22:33:21 +0200 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2012-09-21 01:24:25 +0200 |
| commit | 58bc86e37fda1aec270bccb3df6c20fbd2a6591c (patch) | |
| tree | 281ed668edca7eb3d528f37ebff803e4eaac12bd /src/test/transaction_tests.cpp | |
| parent | Merge pull request #1717 from Diapolo/Qt_change_TX_display (diff) | |
| download | discoin-58bc86e37fda1aec270bccb3df6c20fbd2a6591c.tar.xz discoin-58bc86e37fda1aec270bccb3df6c20fbd2a6591c.zip | |
Check for canonical public keys and signatures
Only enabled inside tests for now.
Diffstat (limited to 'src/test/transaction_tests.cpp')
| -rw-r--r-- | src/test/transaction_tests.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/transaction_tests.cpp b/src/test/transaction_tests.cpp index c23045886..1dacdeaa2 100644 --- a/src/test/transaction_tests.cpp +++ b/src/test/transaction_tests.cpp @@ -76,7 +76,7 @@ BOOST_AUTO_TEST_CASE(tx_valid) break; } - BOOST_CHECK_MESSAGE(VerifyScript(tx.vin[i].scriptSig, mapprevOutScriptPubKeys[tx.vin[i].prevout], tx, i, test[2].get_bool(), 0), strTest); + BOOST_CHECK_MESSAGE(VerifyScript(tx.vin[i].scriptSig, mapprevOutScriptPubKeys[tx.vin[i].prevout], tx, i, test[2].get_bool(), false, 0), strTest); } } } @@ -143,7 +143,7 @@ BOOST_AUTO_TEST_CASE(tx_invalid) break; } - fValid = VerifyScript(tx.vin[i].scriptSig, mapprevOutScriptPubKeys[tx.vin[i].prevout], tx, i, test[2].get_bool(), 0); + fValid = VerifyScript(tx.vin[i].scriptSig, mapprevOutScriptPubKeys[tx.vin[i].prevout], tx, i, test[2].get_bool(), true, 0); } BOOST_CHECK_MESSAGE(!fValid, strTest); |