From 1bcab1fd26edabed2ba40d0c741fb9995939f706 Mon Sep 17 00:00:00 2001 From: Stephen Buttolph Date: Tue, 16 May 2023 22:41:49 -0400 Subject: [PATCH] Remove comment referencing old IP based tracking (#1509) --- network/network.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/network/network.go b/network/network.go index cd5306cc6fa3..b51a7c48bc49 100644 --- a/network/network.go +++ b/network/network.go @@ -746,13 +746,6 @@ func (n *network) Dispatch() error { // Note: listener.Accept is rate limited outside of this package, so a // peer can not just arbitrarily spin up goroutines here. go func() { - // We pessimistically drop an incoming connection if the remote - // address is found in connectedIPs, myIPs, or peerAliasIPs. This - // protects our node from spending CPU cycles on TLS handshakes to - // upgrade connections from existing peers. Specifically, this can - // occur when one of our existing peers attempts to connect to one - // our IP aliases (that they aren't yet aware is an alias). - // // Note: Calling [RemoteAddr] with the Proxy protocol enabled may // block for up to ProxyReadHeaderTimeout. Therefore, we ensure to // call this function inside the go-routine, rather than the main