Add snapshotting integration test (#5519)

* Add snapshotting integration test

* Update ContactInfo on restart in local cluster nodes
This commit is contained in:
carllin
2019-08-21 23:59:11 -07:00
committed by GitHub
parent c18ea3ccc9
commit 087c43b9ef
10 changed files with 214 additions and 28 deletions

View File

@@ -1,8 +1,9 @@
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);
fn restart_node(&mut self, pubkey: Pubkey, config: &ValidatorConfig);
}