Browse Source

net/protocol/protocol_address: stupidity be gone

aggstam 2 years ago
parent
commit
551e357ef2
1 changed files with 0 additions and 5 deletions
  1. 0 5
      src/net/protocol/protocol_address.rs

+ 0 - 5
src/net/protocol/protocol_address.rs

@@ -93,11 +93,6 @@ impl ProtocolAddress {
 
             // TODO: We might want to close the channel here if we're getting
             // corrupted addresses.
-            // Validate addreses length
-            if addrs_msg.addrs.len() > 2 * self.settings.outbound_connections {
-                continue
-            }
-
             self.hosts.store(&addrs_msg.addrs).await;
         }
     }