introduce Bank::new_for_tests (#19062)
This commit is contained in:
committed by
GitHub
parent
ca14475085
commit
1ed12a07ab
@ -1048,6 +1048,12 @@ impl Default for BlockhashQueue {
|
||||
|
||||
impl Bank {
|
||||
pub fn new(genesis_config: &GenesisConfig) -> Self {
|
||||
// this will go away in a coming pr where many replacements in test code will get made
|
||||
Self::new_for_tests(genesis_config)
|
||||
}
|
||||
|
||||
pub fn new_for_tests(genesis_config: &GenesisConfig) -> Self {
|
||||
// this will diverge
|
||||
Self::new_with_paths(
|
||||
genesis_config,
|
||||
Vec::new(),
|
||||
|
@ -22,7 +22,7 @@ pub fn setup_bank_and_vote_pubkeys(num_vote_accounts: usize, stake: u64) -> (Ban
|
||||
&validator_voting_keypairs,
|
||||
vec![stake; validator_voting_keypairs.len()],
|
||||
);
|
||||
let bank = Bank::new(&genesis_config);
|
||||
let bank = Bank::new_for_tests(&genesis_config);
|
||||
(bank, vote_pubkeys)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user