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