diff options
author | practicalswift <practicalswift@users.noreply.github.com> | 2017-07-09 13:05:01 +0200 |
---|---|---|
committer | practicalswift <practicalswift@users.noreply.github.com> | 2017-07-09 13:05:01 +0200 |
commit | 49eb0916da3f07250393111b6bbff080b3d8edd6 (patch) | |
tree | 27675e7bda3a3cdea731c05ee8bb507fb65a0d5e /src/test/sighash_tests.cpp | |
parent | 1d4805ce04645f3203b0cfd3d66ea710e7433eb4 (diff) |
[tests] Avoid redundant assignments. Remove unused variables.
Diffstat (limited to 'src/test/sighash_tests.cpp')
-rw-r--r-- | src/test/sighash_tests.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/test/sighash_tests.cpp b/src/test/sighash_tests.cpp index 1ca83a7cf8..ecbdf57788 100644 --- a/src/test/sighash_tests.cpp +++ b/src/test/sighash_tests.cpp @@ -124,11 +124,9 @@ BOOST_AUTO_TEST_CASE(sighash_test) #if defined(PRINT_SIGHASH_JSON) std::cout << "[\n"; std::cout << "\t[\"raw_transaction, script, input_index, hashType, signature_hash (result)\"],\n"; - #endif + int nRandomTests = 500; + #else int nRandomTests = 50000; - - #if defined(PRINT_SIGHASH_JSON) - nRandomTests = 500; #endif for (int i=0; i<nRandomTests; i++) { int nHashType = InsecureRand32(); |