-
Notifications
You must be signed in to change notification settings - Fork 5.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add bip-halt-unrequested-txn-processing #1664
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
@@ -0,0 +1,53 @@ | ||||||
<pre> | ||||||
BIP: YYY | ||||||
Layer: Peer Services | ||||||
Title: Unrequested Transactions Processing | ||||||
Author: Antoine Riard <[email protected]> | ||||||
Comments-Summary: No comments yet. | ||||||
Comments-URI: https://github.com/bitcoin/bips/wiki/Comments:BIP-0XXX | ||||||
Status: Draft | ||||||
Type: Standards Track | ||||||
Created: 2024-09-05 | ||||||
License: GPLv2 | ||||||
</pre> | ||||||
|
||||||
==Abstract== | ||||||
|
||||||
This BIP proposes a new mechanism to halt the processing of unrequested transations | ||||||
received by a node from its bitcoin networks peers. | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
||||||
==Motivation== | ||||||
|
||||||
Historically, nodes have been exchanging transactions on the Bitcoin peer-to-peer | ||||||
network by sending an inv, and if the transaction has not been discovered and processed | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Suggest wrapping p2p message types throughout this draft either in double quotes (i.e. "inv" in BIPs 33, 35, 130, 133, 330, 331), or in
Suggested change
|
||||||
yet by the other peer, sending a dedicated tx message. | ||||||
|
||||||
Sending an unnannounced tx message has always been considered in conformity with | ||||||
the protocol, however this behavior creates a denanonymization vector if leveraged | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
by mass connectors. | ||||||
|
||||||
We can eliminate this concern by nodes rejecting unrequested transactions. | ||||||
|
||||||
==Specification== | ||||||
|
||||||
TODO: segment the protocol version by sub-categories of traffic class (eg tx, addr, block ?) | ||||||
|
||||||
#. The protocol version of nodes implementing this BIP must be set to 70017 or higher. | ||||||
|
||||||
#. After a node received a transaction from a peer | ||||||
## If this transaction has been previously fetch with a getdata request, the node MUST process the transaction | ||||||
## If this transaction has not been previously fetch with a getdata request, the node SHOULD reject the transaction | ||||||
|
||||||
TODO: add a policy rule to disconnect protocol violation ? | ||||||
|
||||||
==Backward compatibility== | ||||||
|
||||||
This mechanism only applies to network peers signaling NODE_TXRELAY_V2 as a node service bit. | ||||||
|
||||||
==Implementation== | ||||||
|
||||||
https://github.com/bitcoin/bitcoin/pull/30572 | ||||||
|
||||||
==Copyright== | ||||||
|
||||||
This BIP is licensed under the GPLv2. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.