Revert "Factor repair from gossip (#8044)" (#8143)

This reverts commit e61257695f.
This commit is contained in:
carllin
2020-02-06 11:44:20 -08:00
committed by GitHub
parent a7fa92b372
commit fe590da3b6
13 changed files with 605 additions and 816 deletions

View File

@ -6,7 +6,6 @@ use solana_core::{
cluster_info::{ClusterInfo, Node, VALIDATOR_PORT_RANGE},
contact_info::ContactInfo,
gossip_service::discover_cluster,
serve_repair::ServeRepair,
storage_stage::SLOTS_PER_TURN_TEST,
validator::ValidatorConfig,
};
@ -62,11 +61,10 @@ fn run_archiver_startup_basic(num_nodes: usize, num_archivers: usize) {
let cluster_info = Arc::new(RwLock::new(ClusterInfo::new_with_invalid_keypair(
cluster_nodes[0].clone(),
)));
let serve_repair = ServeRepair::new(cluster_info);
let path = get_tmp_ledger_path!();
let blockstore = Arc::new(Blockstore::open(&path).unwrap());
Archiver::download_from_archiver(
&serve_repair,
&cluster_info,
&archiver_info,
&blockstore,
slots_per_segment,