policy: remove incorrect MANDATORY_SCRIPT_VERIFY_FLAGS comment
What changed, and why it matters
This commit only removes a misleading comment in the source code. It does not change any actual code behavior. The old comment incorrectly stated that failing certain script checks could cause a peer to be banned from the network. The commit corrects that documentation-only mistake. There is no security vulnerability being fixed here.
No action needed. This is a non-functional documentation cleanup.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The change deletes two lines from a comment in src/policy/policy.h. The removed text claimed that MANDATORY_SCRIPT_VERIFY_FLAGS failures ‘may trigger a DoS ban’ and directed readers to CheckInputScripts(). The commit message explicitly states this claim is incorrect and that Bitcoin Core does not auto-ban peers for these flag checks. No logic, constants, or behavior are modified.
Changed components
src/policy/policy.h (documentation comment only)Inspect captured patch +1 / −2
diff --git a/src/policy/policy.h b/src/policy/policy.h
index 283a3d4c..13bcf4ce 100644
--- a/src/policy/policy.h
+++ b/src/policy/policy.h
@@ -96,8 +96,7 @@ static constexpr unsigned int MAX_DUST_OUTPUTS_PER_TX{1};
/**
* Mandatory script verification flags that all new transactions must comply with for
- * them to be valid. Failing one of these tests may trigger a DoS ban;
- * see CheckInputScripts() for details.
+ * them to be valid.
*
* Note that this does not affect consensus validity; see GetBlockScriptFlags()
* for that.
Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.