From 546322618490181a4e546ec2c56199e6de1666ee Mon Sep 17 00:00:00 2001 From: Michael Vines Date: Thu, 7 Mar 2019 10:28:19 -0800 Subject: [PATCH] Give spy nodes a proper keypair --- core/src/gossip_service.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/gossip_service.rs b/core/src/gossip_service.rs index 26baab2b8d..371bcb7b72 100644 --- a/core/src/gossip_service.rs +++ b/core/src/gossip_service.rs @@ -130,7 +130,7 @@ pub fn make_spy_node( ) -> (GossipService, Arc>) { 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));