HomePhabricator

net: open p2p connections to nodes that listen on non-default ports

Description

net: open p2p connections to nodes that listen on non-default ports

Summary:

By default, for mainnet, the p2p listening port is 8333. Bitcoin Core
has a strong preference for only connecting to nodes that listen on that
port.

Remove that preference because connections over clearnet that involve
port 8333 make it easy to detect, analyze, block or divert Bitcoin p2p
traffic before the connection is even established (at TCP SYN time).

Backport of core#23542.

Depends on D12342 and D12343.

Test Plan:

ninja all check-all

Reviewers: #bitcoin_abc, PiRK

Reviewed By: #bitcoin_abc, PiRK

Subscribers: PiRK

Differential Revision: https://reviews.bitcoinabc.org/D12344

Details

Provenance
Vasil Dimov <vd@FreeBSD.org>Authored on Nov 18 2021, 08:19
FabienCommitted on Oct 21 2022, 08:34
FabienPushed on Oct 21 2022, 08:34
Reviewer
Restricted Project
Differential Revision
D12344: net: open p2p connections to nodes that listen on non-default ports
Parents
rABC0db06b504d83: Make AddrMan support multiple ports per IP
Branches
Unknown
Tags
Unknown