diff options
| author | Gregory Maxwell <[email protected]> | 2013-08-15 18:42:28 -0700 |
|---|---|---|
| committer | Gregory Maxwell <[email protected]> | 2013-08-15 18:42:28 -0700 |
| commit | 47491a90b6544fbb99dc00b3deb554da66c3a54a (patch) | |
| tree | 337a390536a472307825c284525814143b6a89a2 /src/test/canonical_tests.cpp | |
| parent | Merge pull request #2829 from sipa/bip32 (diff) | |
| parent | Only create signatures with even S, and verification mode to check. (diff) | |
| download | discoin-47491a90b6544fbb99dc00b3deb554da66c3a54a.tar.xz discoin-47491a90b6544fbb99dc00b3deb554da66c3a54a.zip | |
Merge pull request #2131 from sipa/evens
Only create signatures with even S, and verification mode to check.
Diffstat (limited to 'src/test/canonical_tests.cpp')
| -rw-r--r-- | src/test/canonical_tests.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/canonical_tests.cpp b/src/test/canonical_tests.cpp index 42d21f8ac..09988da25 100644 --- a/src/test/canonical_tests.cpp +++ b/src/test/canonical_tests.cpp @@ -64,7 +64,7 @@ BOOST_AUTO_TEST_CASE(script_canon) string test = tv.get_str(); if (IsHex(test)) { std::vector<unsigned char> sig = ParseHex(test); - BOOST_CHECK_MESSAGE(IsCanonicalSignature(sig), test); + BOOST_CHECK_MESSAGE(IsCanonicalSignature(sig, SCRIPT_VERIFY_STRICTENC), test); BOOST_CHECK_MESSAGE(IsCanonicalSignature_OpenSSL(sig), test); } } @@ -78,7 +78,7 @@ BOOST_AUTO_TEST_CASE(script_noncanon) string test = tv.get_str(); if (IsHex(test)) { std::vector<unsigned char> sig = ParseHex(test); - BOOST_CHECK_MESSAGE(!IsCanonicalSignature(sig), test); + BOOST_CHECK_MESSAGE(!IsCanonicalSignature(sig, SCRIPT_VERIFY_STRICTENC), test); BOOST_CHECK_MESSAGE(!IsCanonicalSignature_OpenSSL(sig), test); } } |