diff --git a/core/src/banking_stage.rs b/core/src/banking_stage.rs index 19f5824e3e..3166849c20 100644 --- a/core/src/banking_stage.rs +++ b/core/src/banking_stage.rs @@ -1372,7 +1372,7 @@ mod tests { #[test] fn test_banking_stage_shutdown1() { let genesis_config = create_genesis_config(2).genesis_config; - let bank = Arc::new(Bank::new(&genesis_config)); + let bank = Arc::new(Bank::new_no_wallclock_throttle(&genesis_config)); let (verified_sender, verified_receiver) = unbounded(); let (vote_sender, vote_receiver) = unbounded(); let (gossip_vote_sender, _gossip_vote_receiver) = unbounded(); @@ -1411,7 +1411,7 @@ mod tests { } = create_genesis_config(2); genesis_config.ticks_per_slot = 4; let num_extra_ticks = 2; - let bank = Arc::new(Bank::new(&genesis_config)); + let bank = Arc::new(Bank::new_no_wallclock_throttle(&genesis_config)); let start_hash = bank.last_blockhash(); let (verified_sender, verified_receiver) = unbounded(); let (vote_sender, vote_receiver) = unbounded(); @@ -1699,7 +1699,7 @@ mod tests { mint_keypair, .. } = create_genesis_config(10_000); - let bank = Arc::new(Bank::new(&genesis_config)); + let bank = Arc::new(Bank::new_no_wallclock_throttle(&genesis_config)); let start = Arc::new(Instant::now()); let working_bank = WorkingBank { bank: bank.clone(), @@ -2043,7 +2043,7 @@ mod tests { mint_keypair, .. } = create_slow_genesis_config(10_000); - let bank = Arc::new(Bank::new(&genesis_config)); + let bank = Arc::new(Bank::new_no_wallclock_throttle(&genesis_config)); let pubkey = solana_sdk::pubkey::new_rand(); let transactions = vec![system_transaction::transfer( @@ -2170,7 +2170,7 @@ mod tests { mint_keypair, .. } = create_slow_genesis_config(10_000); - let bank = Arc::new(Bank::new(&genesis_config)); + let bank = Arc::new(Bank::new_no_wallclock_throttle(&genesis_config)); let pubkey = solana_sdk::pubkey::new_rand(); let pubkey1 = solana_sdk::pubkey::new_rand(); @@ -2343,7 +2343,7 @@ mod tests { mint_keypair, .. } = create_slow_genesis_config(10_000); - let bank = Arc::new(Bank::new(&genesis_config)); + let bank = Arc::new(Bank::new_no_wallclock_throttle(&genesis_config)); let pubkey = solana_sdk::pubkey::new_rand(); let pubkey1 = solana_sdk::pubkey::new_rand(); let keypair1 = Keypair::new(); @@ -2471,7 +2471,7 @@ mod tests { } = &genesis_config_info; let blockstore = Blockstore::open(&ledger_path).expect("Expected to be able to open database ledger"); - let bank = Arc::new(Bank::new(&genesis_config)); + let bank = Arc::new(Bank::new_no_wallclock_throttle(&genesis_config)); let (poh_recorder, entry_receiver, record_receiver) = PohRecorder::new( bank.tick_height(), bank.last_blockhash(), diff --git a/core/src/poh_service.rs b/core/src/poh_service.rs index 213d4f1947..6b7efcaae4 100644 --- a/core/src/poh_service.rs +++ b/core/src/poh_service.rs @@ -366,7 +366,7 @@ mod tests { fn test_poh_service() { solana_logger::setup(); let GenesisConfigInfo { genesis_config, .. } = create_genesis_config(2); - let bank = Arc::new(Bank::new(&genesis_config)); + let bank = Arc::new(Bank::new_no_wallclock_throttle(&genesis_config)); let prev_hash = bank.last_blockhash(); let ledger_path = get_tmp_ledger_path!(); {