Give spy nodes a proper keypair

This commit is contained in:
Michael Vines 2019-03-07 10:28:19 -08:00
parent b96bccd71f
commit 5463226184
1 changed files with 1 additions and 1 deletions

View File

@ -130,7 +130,7 @@ pub fn make_spy_node(
) -> (GossipService, Arc<RwLock<ClusterInfo>>) {
let keypair = Arc::new(Keypair::new());
let (node, gossip_socket) = ClusterInfo::spy_node(&keypair.pubkey());
let mut cluster_info = ClusterInfo::new_with_invalid_keypair(node);
let mut cluster_info = ClusterInfo::new(node, keypair);
cluster_info.insert_info(entry_point.clone());
let cluster_info = Arc::new(RwLock::new(cluster_info));