Give spy nodes a proper keypair
This commit is contained in:
parent
b96bccd71f
commit
5463226184
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue