Refactor restart function in local cluster to support separate exit and restart functions (#5845)

This commit is contained in:
carllin
2019-09-08 17:53:34 -07:00
committed by GitHub
parent b35c022629
commit 7607800d47
6 changed files with 158 additions and 53 deletions

View File

@ -1,9 +0,0 @@
use crate::validator::ValidatorConfig;
use solana_client::thin_client::ThinClient;
use solana_sdk::pubkey::Pubkey;
pub trait Cluster {
fn get_node_pubkeys(&self) -> Vec<Pubkey>;
fn get_validator_client(&self, pubkey: &Pubkey) -> Option<ThinClient>;
fn restart_node(&mut self, pubkey: Pubkey, config: &ValidatorConfig);
}

View File

@ -28,7 +28,6 @@ pub mod blocktree;
pub mod blockstream;
pub mod blockstream_service;
pub mod blocktree_processor;
pub mod cluster;
pub mod cluster_info;
pub mod cluster_info_repair_listener;
pub mod consensus;