Give spy nodes a proper keypair
This commit is contained in:
@ -130,7 +130,7 @@ pub fn make_spy_node(
|
|||||||
) -> (GossipService, Arc<RwLock<ClusterInfo>>) {
|
) -> (GossipService, Arc<RwLock<ClusterInfo>>) {
|
||||||
let keypair = Arc::new(Keypair::new());
|
let keypair = Arc::new(Keypair::new());
|
||||||
let (node, gossip_socket) = ClusterInfo::spy_node(&keypair.pubkey());
|
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());
|
cluster_info.insert_info(entry_point.clone());
|
||||||
|
|
||||||
let cluster_info = Arc::new(RwLock::new(cluster_info));
|
let cluster_info = Arc::new(RwLock::new(cluster_info));
|
||||||
|
Reference in New Issue
Block a user