Closed rajarshimaitra closed 1 year ago
date should be 19-01-2023?
Manual-block-relay connections are manually added nodes (via -addnode) that behave like BLOCK_RELAY connections in that they don't participate in transaction and address relay, and also share the properties of MANUAL connections. When the node is connected to a privacy network such as Tor, manual block-relay-only connections to IPv4 or IPv6 nodes can be used for hardening against eclipse attacks, while at the same time making fingerprinting attacks more difficult and preserving a higher degree of privacy by not transmitting transactions and addresses over these links.
More details of involved attack on Tor only is in this paper Biryukov, Pustogarov: Bitcoin over Tor isn’t a good idea (2015)
addnode
RPC-addnode
bitcoind arg<IP>=manual-block-relay
in bitcoin.confWhile its possible to maintain the behaviour, creating a dedicated structure makes the code more cleaner and reduces complexity.
By the general understanding of the club, it was concluded that BIP324 doesn't solve eclipse attack on a node, and thus doesn't mitigate the problem this PR tries to solve.
Currently, the functional test only asserts RPC calls. It could be useful to extend the functional test to assert network traffic of manual-blocks-relay-only
nodes.
Session Details
Summary
This PR adds a RPC option to connect to a
block-relay-only
peer manually.Learning