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

@ -41,7 +41,8 @@ fn converge(
spy_cluster_info.insert_info(leader.clone());
spy_cluster_info.set_leader(leader.id);
let spy_ref = Arc::new(RwLock::new(spy_cluster_info));
let gossip_service = GossipService::new(&spy_ref, None, gossip_socket, exit_signal.clone());
let gossip_service =
GossipService::new(&spy_ref, None, None, gossip_socket, exit_signal.clone());
let mut v: Vec<NodeInfo> = vec![];
// wait for the network to converge, 30 seconds should be plenty
for _ in 0..30 {