Fix stale gossip entrypoint (#8053)

This commit is contained in:
carllin
2020-01-30 21:51:11 -08:00
committed by GitHub
parent 2226c1b75c
commit fd207b6907
3 changed files with 9 additions and 1 deletions

View File

@@ -705,6 +705,10 @@ impl Cluster for LocalCluster {
cluster_validator_info.config = validator_config;
self.restart_node(pubkey, cluster_validator_info);
}
fn get_contact_info(&self, pubkey: &Pubkey) -> Option<&ContactInfo> {
self.validators.get(pubkey).map(|v| &v.info.contact_info)
}
}
impl Drop for LocalCluster {