Skip to content

Commit

Permalink
rename Bank::new_with_config_for_tests (solana-labs#26533)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffwashington authored Jul 10, 2022
1 parent df616a0 commit 8576832
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions runtime/src/bank.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1474,7 +1474,7 @@ impl Bank {
}

#[cfg(test)]
pub(crate) fn new_with_config(
pub(crate) fn new_with_config_for_tests(
genesis_config: &GenesisConfig,
account_indexes: AccountSecondaryIndexes,
accounts_db_caching_enabled: bool,
Expand Down Expand Up @@ -12330,7 +12330,7 @@ pub(crate) mod tests {
let (genesis_config, _mint_keypair) = create_genesis_config(500);
let mut account_indexes = AccountSecondaryIndexes::default();
account_indexes.indexes.insert(AccountIndex::ProgramId);
let bank = Arc::new(Bank::new_with_config(
let bank = Arc::new(Bank::new_with_config_for_tests(
&genesis_config,
account_indexes,
false,
Expand Down Expand Up @@ -12358,7 +12358,7 @@ pub(crate) mod tests {
let (genesis_config, _mint_keypair) = create_genesis_config(500);
let mut account_indexes = AccountSecondaryIndexes::default();
account_indexes.indexes.insert(AccountIndex::ProgramId);
let bank = Arc::new(Bank::new_with_config(
let bank = Arc::new(Bank::new_with_config_for_tests(
&genesis_config,
account_indexes,
false,
Expand Down Expand Up @@ -14417,7 +14417,7 @@ pub(crate) mod tests {

// Set root for bank 0, with caching disabled so we can get the size
// of the storage for this slot
let mut bank0 = Arc::new(Bank::new_with_config(
let mut bank0 = Arc::new(Bank::new_with_config_for_tests(
&genesis_config,
AccountSecondaryIndexes::default(),
false,
Expand Down Expand Up @@ -14455,7 +14455,7 @@ pub(crate) mod tests {
info!("pubkey1: {}", pubkey1);

// Set root for bank 0, with caching enabled
let mut bank0 = Arc::new(Bank::new_with_config(
let mut bank0 = Arc::new(Bank::new_with_config_for_tests(
&genesis_config,
AccountSecondaryIndexes::default(),
true,
Expand Down Expand Up @@ -14531,7 +14531,7 @@ pub(crate) mod tests {
let pubkey2 = solana_sdk::pubkey::new_rand();

// Set root for bank 0, with caching enabled
let mut bank0 = Arc::new(Bank::new_with_config(
let mut bank0 = Arc::new(Bank::new_with_config_for_tests(
&genesis_config,
AccountSecondaryIndexes::default(),
true,
Expand Down Expand Up @@ -15840,7 +15840,7 @@ pub(crate) mod tests {
)
.genesis_config;
genesis_config.rent = Rent::free();
let bank0 = Arc::new(Bank::new_with_config(
let bank0 = Arc::new(Bank::new_with_config_for_tests(
&genesis_config,
AccountSecondaryIndexes::default(),
accounts_db_caching_enabled,
Expand Down

0 comments on commit 8576832

Please sign in to comment.