diff options
| author | Pieter Wuille <[email protected]> | 2016-03-31 14:54:58 +0200 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2016-06-22 15:43:01 +0200 |
| commit | 605e8473a7ddca13b24a4020c7bd630aa5d374e2 (patch) | |
| tree | 8c425e851aa6c30d9edc8bccb60e731a3f053101 /src/test/DoS_tests.cpp | |
| parent | --- [SEGWIT] begin: wallet --- (diff) | |
| download | discoin-605e8473a7ddca13b24a4020c7bd630aa5d374e2.tar.xz discoin-605e8473a7ddca13b24a4020c7bd630aa5d374e2.zip | |
BIP143: Signing logic
Diffstat (limited to 'src/test/DoS_tests.cpp')
| -rw-r--r-- | src/test/DoS_tests.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/DoS_tests.cpp b/src/test/DoS_tests.cpp index 93f7ae09d..a8c5f95ac 100644 --- a/src/test/DoS_tests.cpp +++ b/src/test/DoS_tests.cpp @@ -148,7 +148,7 @@ BOOST_AUTO_TEST_CASE(DoS_mapOrphans) tx.vout.resize(1); tx.vout[0].nValue = 1*CENT; tx.vout[0].scriptPubKey = GetScriptForDestination(key.GetPubKey().GetID()); - SignSignature(keystore, txPrev, tx, 0); + SignSignature(keystore, txPrev, tx, 0, SIGHASH_ALL); AddOrphanTx(tx, i); } @@ -168,7 +168,7 @@ BOOST_AUTO_TEST_CASE(DoS_mapOrphans) tx.vin[j].prevout.n = j; tx.vin[j].prevout.hash = txPrev.GetHash(); } - SignSignature(keystore, txPrev, tx, 0); + SignSignature(keystore, txPrev, tx, 0, SIGHASH_ALL); // Re-use same signature for other inputs // (they don't have to be valid for this test) for (unsigned int j = 1; j < tx.vin.size(); j++) |