Don't punish peers for consensus-invalid txs#1513
Merged
Merged
Conversation
Member
|
After merging #1512, I'm seeing a test failure in p2p_segwit.py |
Member
Author
#1512 changed the script-verify-flag message. Will push update. |
…consensus-invalid txs 876dbdf tests: drop expect_disconnect behaviour for tx relay (Anthony Towns) b29ae9e validation: only check input scripts once (Anthony Towns) 266dd0e net_processing: drop MaybePunishNodeForTx (Anthony Towns) Pull request description: Because we do not discourage nodes for transactions we consider non-standard, we don't get any DoS protection from this check in adversarial scenarios, so remove the check entirely both to simplify the code and reduce the risk of splitting the network due to changes in tx relay policy. Then, because we no longer make use of the distinction between consensus and standardness failures during script validation, don't re-validate each script with only-consensus rules, reducing the cost to us of transactions that we won't relay. ACKs for top commit: achow101: ACK 876dbdf darosior: re-ACK 876dbdf sipa: re-ACK 876dbdf glozow: ACK 876dbdf Tree-SHA512: 8bb0395766dde54fc48f7077b80b88e35581aa6e3054d6d65735965147abefffa7348f0850bb3d46f6c2541fd384ecd40a00a57fa653adabff8a35582e2d1811
delta1
approved these changes
Nov 26, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backport of bitcoin/bitcoin#33050