We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 72fb515 + 8455e36 commit 19be26aCopy full SHA for 19be26a
src/test/transaction_tests.cpp
@@ -189,7 +189,9 @@ BOOST_AUTO_TEST_CASE(tx_invalid)
189
// verifyFlags is a comma separated list of script verification flags to apply, or "NONE"
190
UniValue tests = read_json(std::string(json_tests::tx_invalid, json_tests::tx_invalid + sizeof(json_tests::tx_invalid)));
191
192
- ScriptError err;
+ // Initialize to SCRIPT_ERR_OK. The tests expect err to be changed to a
193
+ // value other than SCRIPT_ERR_OK.
194
+ ScriptError err = SCRIPT_ERR_OK;
195
for (unsigned int idx = 0; idx < tests.size(); idx++) {
196
UniValue test = tests[idx];
197
std::string strTest = test.write();
0 commit comments