diff --git a/src/test/sighash_tests.cpp b/src/test/sighash_tests.cpp index 0cc9bc20b..9985ad692 100644 --- a/src/test/sighash_tests.cpp +++ b/src/test/sighash_tests.cpp @@ -114,11 +114,21 @@ void static RandomTransaction(CTransaction &tx, bool fSingle) { } BOOST_AUTO_TEST_SUITE(sighash_tests) + BOOST_AUTO_TEST_CASE(sighash_test) { seed_insecure_rand(false); - - for (int i=0; i<50000; i++) { + + #if defined(PRINT_SIGHASH_JSON) + std::cout << "[\n"; + std::cout << "\t[\"raw_transaction, script, input_index, hashType, signature_hash (result)\"],\n"; + #endif + int nRandomTests = 50000; + + #if defined(PRINT_SIGHASH_JSON) + nRandomTests = 500; + #endif + for (int i=0; i