ledger-tool: Remove duplicate open_genesis_config_by() call (#29950)

This commit is contained in:
steviez 2023-01-27 01:20:42 -06:00 committed by GitHub
parent 3478833ad8
commit f83f658cd8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 5 deletions

View File

@ -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,