[tests] Avoid redundant assignments. Remove unused variables.

This commit is contained in:
practicalswift
2017-07-09 13:05:01 +02:00
parent 1d4805ce04
commit 49eb0916da
2 changed files with 4 additions and 10 deletions

View File

@@ -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();