Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
0o-de-lally committed Mar 2, 2023
1 parent 8375271 commit dbc6cc3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 11 deletions.
13 changes: 5 additions & 8 deletions ol/genesis-tools/src/run.rs
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
use anyhow::Result;
use diem_secure_storage::{GitHubStorage, Storage};
use vm_genesis::{TestValidator, Validator};
use std::{path::PathBuf, process::exit, time::Duration, thread};
use ol_types::{legacy_recovery::{save_recovery_file, read_from_recovery_file}, OLProgress};
use gumdrop::Options;
use vm_genesis::{TestValidator};
use std::{path::PathBuf, time::Duration, thread};
use ol_types::{OLProgress};

use diem_genesis_tool::genesis::Genesis;
use crate::{
compare,
// swarm_genesis::make_swarm_genesis
fork_genesis::{
make_recovery_genesis_from_db_backup, make_recovery_genesis_from_vec_legacy_recovery,
make_recovery_genesis_from_db_backup,
},
process_snapshot::db_backup_into_recovery_struct,
};
use indicatif::ProgressIterator;

Expand Down
6 changes: 3 additions & 3 deletions ol/genesis-tools/src/wizard.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ use std::str::FromStr;
use diem_types::chain_id::ChainId;
use diem_types::network_address::{NetworkAddress, Protocol};
use ol::mgmt::restore::Backup;
use ol::application::APPLICATION;


use crate::run;



#[test]
fn test_wizard() {
let wizard = GenesisWizard::default();
let mut wizard = GenesisWizard::default();
wizard.start_wizard().unwrap();
}

Expand Down Expand Up @@ -303,7 +303,7 @@ fn git_setup(&mut self) -> anyhow::Result<()> {

println!("Downloading snapshot for epoch {}", epoch);
// All we are doing is download the snapshot from github.
let mut backup = Backup::new(Option::from(epoch));
let backup = Backup::new(Option::from(epoch));
println!("Created backup object");
backup.fetch_backup(false)?;
println!("Downloaded snapshot for epoch {}", epoch);
Expand Down

0 comments on commit dbc6cc3

Please sign in to comment.