Skip to content

Commit 76de36f

Browse files
sipalaanwj
authored andcommitted
Report non-mandatory script failures correctly
Github-Pull: #7276 Rebased-From: 7ef8f3c
1 parent 453c567 commit 76de36f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1653,9 +1653,9 @@ bool CheckInputs(const CTransaction& tx, CValidationState &state, const CCoinsVi
16531653
// arguments; if so, don't trigger DoS protection to
16541654
// avoid splitting the network between upgraded and
16551655
// non-upgraded nodes.
1656-
CScriptCheck check(*coins, tx, i,
1656+
CScriptCheck check2(*coins, tx, i,
16571657
flags & ~STANDARD_NOT_MANDATORY_VERIFY_FLAGS, cacheStore);
1658-
if (check())
1658+
if (check2())
16591659
return state.Invalid(false, REJECT_NONSTANDARD, strprintf("non-mandatory-script-verify-flag (%s)", ScriptErrorString(check.GetScriptError())));
16601660
}
16611661
// Failures of other flags indicate a transaction that is

0 commit comments

Comments
 (0)