add accounts db config to bank tests (#26517)
This commit is contained in:
parent
2b6c9852f1
commit
602da5e51f
|
@ -101,6 +101,7 @@ impl SnapshotTestConfig {
|
|||
false,
|
||||
accounts_db::AccountShrinkThreshold::default(),
|
||||
false,
|
||||
None,
|
||||
);
|
||||
bank0.freeze();
|
||||
let mut bank_forks = BankForks::new(bank0);
|
||||
|
|
|
@ -3656,6 +3656,7 @@ pub mod tests {
|
|||
false,
|
||||
AccountShrinkThreshold::default(),
|
||||
false,
|
||||
None,
|
||||
);
|
||||
*bank.epoch_schedule()
|
||||
}
|
||||
|
|
|
@ -1475,6 +1475,7 @@ impl Bank {
|
|||
accounts_db_caching_enabled,
|
||||
shrink_ratio,
|
||||
false,
|
||||
None,
|
||||
)
|
||||
}
|
||||
|
||||
|
@ -1556,6 +1557,7 @@ impl Bank {
|
|||
accounts_db_caching_enabled: bool,
|
||||
shrink_ratio: AccountShrinkThreshold,
|
||||
debug_do_not_add_builtins: bool,
|
||||
accounts_db_config: Option<AccountsDbConfig>,
|
||||
) -> Self {
|
||||
Self::new_with_paths(
|
||||
genesis_config,
|
||||
|
@ -1566,7 +1568,7 @@ impl Bank {
|
|||
accounts_db_caching_enabled,
|
||||
shrink_ratio,
|
||||
debug_do_not_add_builtins,
|
||||
Some(ACCOUNTS_DB_CONFIG_FOR_TESTING),
|
||||
accounts_db_config.or(Some(ACCOUNTS_DB_CONFIG_FOR_TESTING)),
|
||||
None,
|
||||
)
|
||||
}
|
||||
|
|
|
@ -3539,6 +3539,7 @@ mod tests {
|
|||
false,
|
||||
AccountShrinkThreshold::default(),
|
||||
false,
|
||||
None,
|
||||
));
|
||||
bank0
|
||||
.transfer(lamports_to_transfer, &mint_keypair, &key2.pubkey())
|
||||
|
|
Loading…
Reference in New Issue