diff --git a/gossip/src/gossip_service.rs b/gossip/src/gossip_service.rs index a3f6c4b72388c7..db85f5655e70ef 100644 --- a/gossip/src/gossip_service.rs +++ b/gossip/src/gossip_service.rs @@ -7,14 +7,9 @@ use { solana_client::{ connection_cache::ConnectionCache, rpc_client::RpcClient, - thin_client::ThinClient, tpu_client::{TpuClient, TpuClientConfig, TpuClientWrapper}, }, - solana_connection_cache::connection_cache::{ - ConnectionManager, ConnectionPool, NewConnectionConfig, - }, solana_perf::recycler::Recycler, - solana_quic_client::{QuicConfig, QuicConnectionManager, QuicPool}, solana_runtime::bank_forks::BankForks, solana_sdk::{ pubkey::Pubkey, diff --git a/gossip/src/legacy_contact_info.rs b/gossip/src/legacy_contact_info.rs index d3dead1910d6ab..882df75864e357 100644 --- a/gossip/src/legacy_contact_info.rs +++ b/gossip/src/legacy_contact_info.rs @@ -229,21 +229,6 @@ impl LegacyContactInfo { pub fn is_valid_address(addr: &SocketAddr, socket_addr_space: &SocketAddrSpace) -> bool { addr.port() != 0u16 && Self::is_valid_ip(addr.ip()) && socket_addr_space.check(addr) } - - pub(crate) fn valid_client_facing_addr( - &self, - protocol: Protocol, - socket_addr_space: &SocketAddrSpace, - ) -> Option<(SocketAddr, SocketAddr)> { - Some(( - self.rpc() - .ok() - .filter(|addr| socket_addr_space.check(addr))?, - self.tpu(protocol) - .ok() - .filter(|addr| socket_addr_space.check(addr))?, - )) - } } impl TryFrom<&ContactInfo> for LegacyContactInfo {