Bank::default_for_tests() (#19084)
This commit is contained in:
committed by
GitHub
parent
24207a09ac
commit
a9014ceceb
@ -25,7 +25,7 @@ fn bench_save_tower(bench: &mut Bencher) {
|
||||
|
||||
let vote_account_pubkey = &Pubkey::default();
|
||||
let node_keypair = Arc::new(Keypair::new());
|
||||
let heaviest_bank = BankForks::new(Bank::default()).working_bank();
|
||||
let heaviest_bank = BankForks::new(Bank::default_for_tests()).working_bank();
|
||||
let tower = Tower::new(
|
||||
&node_keypair.pubkey(),
|
||||
vote_account_pubkey,
|
||||
@ -47,7 +47,7 @@ fn bench_generate_ancestors_descendants(bench: &mut Bencher) {
|
||||
|
||||
let vote_account_pubkey = &Pubkey::default();
|
||||
let node_keypair = Arc::new(Keypair::new());
|
||||
let heaviest_bank = BankForks::new(Bank::default()).working_bank();
|
||||
let heaviest_bank = BankForks::new(Bank::default_for_tests()).working_bank();
|
||||
let mut tower = Tower::new(
|
||||
&node_keypair.pubkey(),
|
||||
vote_account_pubkey,
|
||||
|
Reference in New Issue
Block a user