From 20b53eb4b49ffd5a87329cd28bb98c51f364461f Mon Sep 17 00:00:00 2001 From: DimAn Date: Wed, 17 Mar 2021 14:36:48 +0300 Subject: [PATCH] Revert to snapshots 2 --- validator/src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/validator/src/main.rs b/validator/src/main.rs index 6bd2ff5e8f294b..e9e68078ea3018 100644 --- a/validator/src/main.rs +++ b/validator/src/main.rs @@ -2066,8 +2066,8 @@ pub fn main() { let snapshot_interval_slots = value_t_or_exit!(matches, "snapshot_interval_slots", u64); let maximum_local_snapshot_age = value_t_or_exit!(matches, "maximum_local_snapshot_age", u64); - let snapshot_output_dir = if matches.is_present("snapshot_dir") { - PathBuf::from(matches.value_of("snapshot_dir").unwrap()) + let snapshot_output_dir = if matches.is_present("snapshots") { + PathBuf::from(matches.value_of("snapshots").unwrap()) } else { ledger_path.clone() };