mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 06:28:31 +01:00
[tests] Avoid redundant assignments. Remove unused variables.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user