ledger-tool: Remove duplicate open_genesis_config_by() call (#29950)
This commit is contained in:
parent
3478833ad8
commit
f83f658cd8
|
@ -2789,10 +2789,8 @@ fn main() {
|
||||||
..ProcessOptions::default()
|
..ProcessOptions::default()
|
||||||
};
|
};
|
||||||
let print_accounts_stats = arg_matches.is_present("print_accounts_stats");
|
let print_accounts_stats = arg_matches.is_present("print_accounts_stats");
|
||||||
info!(
|
let genesis_config = open_genesis_config_by(&ledger_path, arg_matches);
|
||||||
"genesis hash: {}",
|
info!("genesis hash: {}", genesis_config.hash());
|
||||||
open_genesis_config_by(&ledger_path, arg_matches).hash()
|
|
||||||
);
|
|
||||||
|
|
||||||
let blockstore = open_blockstore(
|
let blockstore = open_blockstore(
|
||||||
&ledger_path,
|
&ledger_path,
|
||||||
|
@ -2803,7 +2801,7 @@ fn main() {
|
||||||
);
|
);
|
||||||
let (bank_forks, ..) = load_bank_forks(
|
let (bank_forks, ..) = load_bank_forks(
|
||||||
arg_matches,
|
arg_matches,
|
||||||
&open_genesis_config_by(&ledger_path, arg_matches),
|
&genesis_config,
|
||||||
&blockstore,
|
&blockstore,
|
||||||
process_options,
|
process_options,
|
||||||
snapshot_archive_path,
|
snapshot_archive_path,
|
||||||
|
|
Loading…
Reference in New Issue