Skip to content

Commit

Permalink
program-test uses Bank::new_with_paths() (solana-labs#34549)
Browse files Browse the repository at this point in the history
  • Loading branch information
brooksprumo authored Dec 21, 2023
1 parent 14446e5 commit 25f0f37
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions program-test/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ use {
base64::{prelude::BASE64_STANDARD, Engine},
chrono_humanize::{Accuracy, HumanTime, Tense},
log::*,
solana_accounts_db::epoch_accounts_hash::EpochAccountsHash,
solana_accounts_db::{
accounts_db::AccountShrinkThreshold, accounts_index::AccountSecondaryIndexes,
epoch_accounts_hash::EpochAccountsHash,
},
solana_banks_client::start_client,
solana_banks_server::banks_server::start_local_server,
solana_bpf_loader_program::serialization::serialize_parameters,
Expand Down Expand Up @@ -805,7 +808,7 @@ impl ProgramTest {
debug!("Payer address: {}", mint_keypair.pubkey());
debug!("Genesis config: {}", genesis_config);

let mut bank = Bank::new_with_runtime_config_for_tests(
let mut bank = Bank::new_with_paths(
&genesis_config,
Arc::new(RuntimeConfig {
compute_budget: self.compute_max_units.map(|max_units| ComputeBudget {
Expand All @@ -815,6 +818,15 @@ impl ProgramTest {
transaction_account_lock_limit: self.transaction_account_lock_limit,
..RuntimeConfig::default()
}),
Vec::default(),
None,
None,
AccountSecondaryIndexes::default(),
AccountShrinkThreshold::default(),
false,
None,
None,
Arc::default(),
);

// Add commonly-used SPL programs as a convenience to the user
Expand Down

0 comments on commit 25f0f37

Please sign in to comment.