Add --tower argument to specify where tower files are persisted (#17060)

(cherry picked from commit 9ba2c53b85)

Co-authored-by: Michael Vines <mvines@gmail.com>
This commit is contained in:
mergify[bot]
2021-05-05 20:37:36 +00:00
committed by GitHub
parent 9761af201b
commit 970bba495f
3 changed files with 18 additions and 5 deletions

View File

@@ -1247,7 +1247,14 @@ pub fn main() {
.long("snapshots")
.value_name("DIR")
.takes_value(true)
.help("Use DIR as persistent snapshot [default: --ledger value]"),
.help("Use DIR as snapshot location [default: --ledger value]"),
)
.arg(
Arg::with_name("tower")
.long("tower")
.value_name("DIR")
.takes_value(true)
.help("Use DIR as tower location [default: --ledger value]"),
)
.arg(
Arg::with_name("gossip_port")
@@ -2034,6 +2041,7 @@ pub fn main() {
let restricted_repair_only_mode = matches.is_present("restricted_repair_only_mode");
let mut validator_config = ValidatorConfig {
require_tower: matches.is_present("require_tower"),
tower_path: value_t!(matches, "tower", PathBuf).ok(),
dev_halt_at_slot: value_t!(matches, "dev_halt_at_slot", Slot).ok(),
cuda: matches.is_present("cuda"),
expected_genesis_hash: matches