Anthony Towns [ARCHIVE] on Nostr: 📅 Original date posted:2021-01-14 📝 Original message:On Wed, Jan 06, 2021 at ...
📅 Original date posted:2021-01-14
📝 Original message:On Wed, Jan 06, 2021 at 11:35:11AM -0500, Suhas Daftuar via bitcoin-dev wrote:
> I'm proposing the addition of a new, optional p2p message to allow peers to
> communicate that they do not want to send or receive (loose) transactions for
> the lifetime of a connection.
>
> The goal of this message is to help facilitate connections on the network over
> which only block-related data (blocks/headers/compact blocks/etc) are relayed,
> to create low-resource connections that help protect against partition attacks
> on the network.
I think we should separate these ideas -- ie, the protocol change to
allow indicating that you don't want transactions, and the policy change
to protect against partition attacks using that protocol addition.
The idea (obviously?) being that the protocol should be simple and
flexible enough to support many possible policies.
> ==Specification==
> # A new disabletx message is added, [...]
> # A node that has sent or received a disabletx message to/from a peer MUST NOT send any of these messages to the peer:
> ## inv messages for transactions
> [...]
> # It is RECOMMENDED that a node that has sent or received a disabletx message to/from a peer not send any of these messages to the peer:
> ## addr/getaddr
> ## addrv2 (BIP 155)
In particular, I think combining these doesn't make sense for:
* nodes running with -blocksonly (that want to stay up to date with
the blockchain, but don't care about txes)
- not sending disabletx reduces their potential connectivity, if
nodes are willing to accept more disabletx peers due to the lower
resource usage
- sending disabletx means they can't maintain their addr db and find
other nodes to connect to
* non-listening nodes running with -connect to one/more preselected peers
- they can't send disabletx generally because they want txes
- they don't need addr information (since they only make connections
to some known peers), and don't have many peers to relay addresses
on to, so are essentially blackholes, so would like to disable
addr relay for much the same reasons
So to me that says the protocol part of the design's not as flexible as
it should be, which suggests DISABLETX and DISABLEADDR.
(I think I'm going to flesh out the "FEATURE" idea as an alternative
way of dealing with this, but that can be its own thread)
Cheers,
aj
Published at
2023-06-07 18:28:10Event JSON
{
"id": "16b5e9edd514c7eec62aa23adb3ba712dc1ac2d12d2d9432a16887b82a0f075a",
"pubkey": "f0feda6ad58ea9f486e469f87b3b9996494363a26982b864667c5d8acb0542ab",
"created_at": 1686162490,
"kind": 1,
"tags": [
[
"e",
"842200f2a94332c7e94662e315d234fceeefa9b88dd12cef0790ef063659ea38",
"",
"root"
],
[
"e",
"75d2a7cddcce4102aa83cfd636fca46dbe2cc8736bcd848ff83936b900c7f241",
"",
"reply"
],
[
"p",
"cd753aa8fbc112e14ffe9fe09d3630f0eff76ca68e376e004b8e77b687adddba"
]
],
"content": "📅 Original date posted:2021-01-14\n📝 Original message:On Wed, Jan 06, 2021 at 11:35:11AM -0500, Suhas Daftuar via bitcoin-dev wrote:\n\u003e I'm proposing the addition of a new, optional p2p message to allow peers to\n\u003e communicate that they do not want to send or receive (loose) transactions for\n\u003e the lifetime of a connection. \n\u003e \n\u003e The goal of this message is to help facilitate connections on the network over\n\u003e which only block-related data (blocks/headers/compact blocks/etc) are relayed,\n\u003e to create low-resource connections that help protect against partition attacks\n\u003e on the network.\n\nI think we should separate these ideas -- ie, the protocol change to\nallow indicating that you don't want transactions, and the policy change\nto protect against partition attacks using that protocol addition.\n\nThe idea (obviously?) being that the protocol should be simple and\nflexible enough to support many possible policies.\n\n\u003e ==Specification==\n\u003e # A new disabletx message is added, [...]\n\u003e # A node that has sent or received a disabletx message to/from a peer MUST NOT send any of these messages to the peer:\n\u003e ## inv messages for transactions\n\u003e [...]\n\u003e # It is RECOMMENDED that a node that has sent or received a disabletx message to/from a peer not send any of these messages to the peer:\n\u003e ## addr/getaddr\n\u003e ## addrv2 (BIP 155)\n\nIn particular, I think combining these doesn't make sense for:\n\n * nodes running with -blocksonly (that want to stay up to date with\n the blockchain, but don't care about txes)\n - not sending disabletx reduces their potential connectivity, if\n nodes are willing to accept more disabletx peers due to the lower\n resource usage\n - sending disabletx means they can't maintain their addr db and find\n other nodes to connect to\n\n * non-listening nodes running with -connect to one/more preselected peers\n - they can't send disabletx generally because they want txes\n - they don't need addr information (since they only make connections\n to some known peers), and don't have many peers to relay addresses\n on to, so are essentially blackholes, so would like to disable\n addr relay for much the same reasons\n\nSo to me that says the protocol part of the design's not as flexible as\nit should be, which suggests DISABLETX and DISABLEADDR.\n\n(I think I'm going to flesh out the \"FEATURE\" idea as an alternative\nway of dealing with this, but that can be its own thread)\n\nCheers,\naj",
"sig": "95c915b2897684f4a043dd834d6ff24b5c39c9e825b9f6d4ea2900e2fba7993f0ce61ddcd1305ef81e6970737850928b18f229f097b7c929d604c9a27a059cfc"
}