restore name: Bank::new_with_paths (#19122)

This commit is contained in:
Jeff Washington (jwash) 2021-08-09 17:30:37 -05:00 committed by GitHub
parent c56bccdf32
commit 5874f75a26
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -406,7 +406,7 @@ pub fn process_blockstore(
} }
// Setup bank for slot 0 // Setup bank for slot 0
let bank0 = Bank::new_with_paths_production( let bank0 = Bank::new_with_paths(
genesis_config, genesis_config,
account_paths, account_paths,
&opts.frozen_accounts, &opts.frozen_accounts,

View File

@ -1178,7 +1178,7 @@ impl Bank {
shrink_ratio: AccountShrinkThreshold, shrink_ratio: AccountShrinkThreshold,
debug_do_not_add_builtins: bool, debug_do_not_add_builtins: bool,
) -> Self { ) -> Self {
Self::new_with_paths_production( Self::new_with_paths(
genesis_config, genesis_config,
paths, paths,
frozen_account_pubkeys, frozen_account_pubkeys,
@ -1202,7 +1202,7 @@ impl Bank {
shrink_ratio: AccountShrinkThreshold, shrink_ratio: AccountShrinkThreshold,
debug_do_not_add_builtins: bool, debug_do_not_add_builtins: bool,
) -> Self { ) -> Self {
Self::new_with_paths_production( Self::new_with_paths(
genesis_config, genesis_config,
paths, paths,
frozen_account_pubkeys, frozen_account_pubkeys,
@ -1215,7 +1215,7 @@ impl Bank {
) )
} }
pub fn new_with_paths_production( pub fn new_with_paths(
genesis_config: &GenesisConfig, genesis_config: &GenesisConfig,
paths: Vec<PathBuf>, paths: Vec<PathBuf>,
frozen_account_pubkeys: &[Pubkey], frozen_account_pubkeys: &[Pubkey],