Rename new_entry_point as new_gossip_entry_point to clarify usage

This commit is contained in:
Michael Vines
2019-03-08 17:15:08 -08:00
parent cd88f81817
commit 31cbb52654
6 changed files with 14 additions and 13 deletions

View File

@@ -1616,7 +1616,7 @@ mod tests {
solana_logger::setup();
let node_info = NodeInfo::new_localhost(Keypair::new().pubkey(), 0);
let mut cluster_info = ClusterInfo::new_with_invalid_keypair(node_info);
let network_entry_point = NodeInfo::new_entry_point(&socketaddr!("127.0.0.1:1239"));
let network_entry_point = NodeInfo::new_gossip_entry_point(&socketaddr!("127.0.0.1:1239"));
cluster_info.insert_info(network_entry_point);
assert!(cluster_info.leader_data().is_none());
}