Make gossip selection stake based (#2848)

This commit is contained in:
Sagar Dhawan
2019-02-20 17:08:56 -08:00
committed by GitHub
parent 33c7f92f56
commit a484c87354
12 changed files with 211 additions and 71 deletions

View File

@@ -373,8 +373,13 @@ pub fn poll_gossip_for_leader(leader_gossip: SocketAddr, timeout: Option<u64>) -
let (node, gossip_socket) = ClusterInfo::spy_node();
let my_addr = gossip_socket.local_addr().unwrap();
let cluster_info = Arc::new(RwLock::new(ClusterInfo::new(node)));
let gossip_service =
GossipService::new(&cluster_info.clone(), None, gossip_socket, exit.clone());
let gossip_service = GossipService::new(
&cluster_info.clone(),
None,
None,
gossip_socket,
exit.clone(),
);
let leader_entry_point = NodeInfo::new_entry_point(&leader_gossip);
cluster_info