Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
[tests] Avoid redundant assignments. Remove unused variables. #10777
+4
−10
Conversation
fanquake
added the
Tests
label
Jul 8, 2017
| - nRandomTests = 500; | ||
| + int nRandomTests = 500; | ||
| + #else | ||
| + int nRandomTests = 50000; | ||
| #endif | ||
| for (int i=0; i<nRandomTests; i++) { |
paveljanik
Jul 9, 2017
Contributor
nRandomTests is undeclared in case of !defined(PRINT_SIGHASH_JSON). There are too many #if defined(PRINT_SIGHASH_JSON) anyway...
practicalswift
Jul 9, 2017
Contributor
@paveljanik Merged the two #if defined(PRINT_SIGHASH_JSON):s. Looks better?
practicalswift
Jul 9, 2017
Contributor
@paveljanik The ifdef was added in 232aa9e by @maraoz to control if data/sighash.json test data should be written. Is it no longer needed?
|
utACK 49eb091 |
|
utACK 49eb091 But I still wonder who and where defines |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
practicalswift commentedJul 8, 2017
•
edited