diff --git a/local-cluster/src/local_cluster.rs b/local-cluster/src/local_cluster.rs index be2dc59e7eb425..6642b24c9f1694 100644 --- a/local-cluster/src/local_cluster.rs +++ b/local-cluster/src/local_cluster.rs @@ -27,7 +27,7 @@ use { solana_ledger::{create_new_tmp_ledger_with_size, shred::Shred}, solana_message::Message, solana_native_token::LAMPORTS_PER_SOL, - solana_net_utils::bind_to_unspecified, + solana_net_utils::sockets::bind_to_localhost_unique, solana_poh_config::PohConfig, solana_pubkey::Pubkey, solana_rpc_client::rpc_client::RpcClient, @@ -1136,7 +1136,7 @@ impl Cluster for LocalCluster { } fn send_shreds_to_validator(&self, dup_shreds: Vec<&Shred>, validator_key: &Pubkey) { - let send_socket = bind_to_unspecified().unwrap(); + let send_socket = bind_to_localhost_unique().expect("should bind"); let validator_tvu = self .get_contact_info(validator_key) .unwrap()