Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
If -spkreuse=0, ensure transactions in mempool always have unique scriptPubKeys #9749
Conversation
|
@sdaftuar pointed out on IRC that someone could watch the p2p network and screw up people by sending dust to SPKs they see. I also noticed this breaks common RBF usage since the SPK conflict rejects the transaction before it can be replaced. To address both of these, I refactored the logic so that it treats non-inherent (that is, within the same tx) SPK conflicts in the same manner as TxIn conflicts. Although in the SPK case, the RBF optin flag is ignored, and a conflict in the parents of the transaction don't cause a DoS ban. |
|
As mentioned on IRC, I'm opposed to this feature. Would not object to more optional safeguards against reuse in the wallet code though. |
|
And as mentioned on IRC, I don't like the idea of changing Core's direction to where it is no longer a reference implementation, but a specific political agenda to the exclusion of others. If you don't like the feature, just don't use it. |
|
@luke-jr Please explain in the pull request, and ideally in code comments, what this patch is intended to do and why. Concept NACK policy change PRs that are made without providing motivation. |
luke-jr commentedFeb 13, 2017
•
Edited 1 time
-
luke-jr
Feb 13, 2017
Exceptions:
Changes since original 2013 patch (pre-squashed):
Known issues:
This breaks RBF in most usage scenarios.Someone could watch for transactions and spam dust to block them on nodes using this.