Spy just for RPC to avoid premature supermajority (#7856) (#7875)

automerge
This commit is contained in:
mergify[bot]
2020-01-19 18:51:13 -08:00
committed by Grimes
parent c759a04fbc
commit fbbfa93524
2 changed files with 33 additions and 32 deletions

View File

@@ -198,7 +198,10 @@ fn get_rpc_addr(
identity_keypair: &Arc<Keypair>,
entrypoint_gossip: &SocketAddr,
) -> (RpcClient, SocketAddr) {
let mut cluster_info = ClusterInfo::new(node.info.clone(), identity_keypair.clone());
let mut cluster_info = ClusterInfo::new(
ClusterInfo::spy_contact_info(&identity_keypair.pubkey()),
identity_keypair.clone(),
);
cluster_info.set_entrypoint(ContactInfo::new_gossip_entry_point(entrypoint_gossip));
let cluster_info = Arc::new(RwLock::new(cluster_info));