Skip to content

Commit

Permalink
save
Browse files Browse the repository at this point in the history
  • Loading branch information
ryoqun committed Dec 3, 2024
1 parent e4cb5c7 commit fedba09
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions core/src/banking_simulation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ use {
},
solana_sdk::{
clock::Slot, genesis_config::GenesisConfig, pubkey::Pubkey,
shred_version::compute_shred_version, signature::Signer, signer::keypair::Keypair,
scheduling::SchedulingMode::BlockProduction, shred_version::compute_shred_version,
signature::Signer, signer::keypair::Keypair,
},
solana_streamer::socket::SocketAddrSpace,
solana_turbine::broadcast_stage::{BroadcastStage, BroadcastStageType},
Expand All @@ -55,7 +56,6 @@ use {
},
thiserror::Error,
};
use solana_sdk::scheduling::SchedulingMode::BlockProduction;

/// This creates a simulated environment around `BankingStage` to produce leader's blocks based on
/// recorded banking trace events (`TimedTracedEvent`).
Expand Down Expand Up @@ -521,10 +521,7 @@ impl SimulatorLoop {
self.bank_forks
.write()
.unwrap()
.insert_with_scheduling_mode(
BlockProduction,
new_bank,
);
.insert_with_scheduling_mode(BlockProduction, new_bank);
(bank, bank_created) = (
self.bank_forks
.read()
Expand Down

0 comments on commit fedba09

Please sign in to comment.