Merge 69c0313444 into merged_master (Bitcoin PR bitcoin/bitcoin#31269)

This commit is contained in:
ivanlele 2026-04-03 11:46:39 +00:00
commit 0b7f41f563
No known key found for this signature in database
7 changed files with 2 additions and 32 deletions

View file

@ -2466,15 +2466,9 @@ bool CheckInputScripts(const CTransaction& tx, TxValidationState& state,
// string by reporting the error from the second check.
serror = check2.GetScriptError();
}
// MANDATORY flag failures correspond to
// TxValidationResult::TX_CONSENSUS. Because CONSENSUS
// failures are the most serious case of validation
// failures, we may need to consider using
// RECENT_CONSENSUS_CHANGE for any script failure that
// could be due to non-upgraded nodes which we may want to
// support, to avoid splitting the network (but this
// depends on the details of how net_processing handles
// such errors).
// TxValidationResult::TX_CONSENSUS.
return state.Invalid(TxValidationResult::TX_CONSENSUS, strprintf("mandatory-script-verify-flag-failed (%s)", ScriptErrorString(serror)));
}
}