aboutsummaryrefslogtreecommitdiff
path: root/src/test/script_tests.cpp
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2014-12-01 14:57:49 +0100
committerWladimir J. van der Laan <laanwj@gmail.com>2014-12-01 14:57:58 +0100
commitf0877f8b6200dcf6df12df5e69d498d365f81f8b (patch)
treedc5f63386a9c0752a62301a815d6a976286a1b42 /src/test/script_tests.cpp
parent89151d9f29870cc9246f76baba75b75d3a7528d7 (diff)
parent4cdaa95a209808276992dc1eb0ed0773f7927073 (diff)
downloadbitcoin-f0877f8b6200dcf6df12df5e69d498d365f81f8b.tar.xz
Merge pull request #5227
4cdaa95 Resize after succesful result (Pieter Wuille) 9d8604f Header define style cleanups (Pieter Wuille) a53fd41 Deterministic signing (Pieter Wuille) 3060e36 Add the RFC6979 PRNG (Pieter Wuille) a8f5087 Add HMAC-SHA256 (Pieter Wuille) 36fa4a7 Split up crypto/sha2 (Pieter Wuille)
Diffstat (limited to 'src/test/script_tests.cpp')
-rw-r--r--src/test/script_tests.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test/script_tests.cpp b/src/test/script_tests.cpp
index 6952f4c584..53411190eb 100644
--- a/src/test/script_tests.cpp
+++ b/src/test/script_tests.cpp
@@ -248,8 +248,9 @@ public:
{
uint256 hash = SignatureHash(scriptPubKey, spendTx, 0, nHashType);
std::vector<unsigned char> vchSig, r, s;
+ uint32_t iter = 0;
do {
- key.Sign(hash, vchSig);
+ key.Sign(hash, vchSig, iter++);
if ((lenS == 33) != (vchSig[5 + vchSig[3]] == 33)) {
NegateSignatureS(vchSig);
}