Skip to content

Commit 2ef3872

Browse files
committed
Report non-mandatory script failures correctly.
Coming from btc@7ef8f3c072a8750c72a3a1cdc727b5c1d173bac8
1 parent 446d340 commit 2ef3872

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
@@ -1898,9 +1898,9 @@ bool CheckInputs(const CTransaction& tx, CValidationState &state, const CCoinsVi
18981898
// arguments; if so, don't trigger DoS protection to
18991899
// avoid splitting the network between upgraded and
19001900
// non-upgraded nodes.
1901-
CScriptCheck check(*coins, tx, i,
1901+
CScriptCheck check2(*coins, tx, i,
19021902
flags & ~STANDARD_NOT_MANDATORY_VERIFY_FLAGS, cacheStore, &cachedHashes);
1903-
if (check())
1903+
if (check2())
19041904
return state.Invalid(false, REJECT_NONSTANDARD, strprintf("non-mandatory-script-verify-flag (%s)", ScriptErrorString(check.GetScriptError())));
19051905
}
19061906
// Failures of other flags indicate a transaction that is

0 commit comments

Comments
 (0)