Skip to content

Commit 47d1ce6

Browse files
committed
Merge commit '8f9d3d402da0e63c48817c36d6e09a352c6d6084' into HEAD
2 parents 7aa76e9 + 8f9d3d4 commit 47d1ce6

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

core/src/banking_simulation.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -770,12 +770,12 @@ impl BankingSimulator {
770770
);
771771

772772
// Create a partially-dummy ClusterInfo for the banking stage.
773-
let cluster_info = Arc::new(DummyClusterInfo {
773+
let cluster_info_for_banking = Arc::new(DummyClusterInfo {
774774
id: simulated_leader.into(),
775775
});
776776
let banking_tracer_channels = if let Some(pool) = unified_scheduler_pool {
777777
let channels = retracer.create_channels_for_scheduler_pool(&pool);
778-
ensure_banking_stage_setup(&pool, &bank_forks, &channels, &cluster_info, &poh_recorder);
778+
ensure_banking_stage_setup(&pool, &bank_forks, &channels, &cluster_info_for_banking, &poh_recorder);
779779
channels
780780
} else {
781781
retracer.create_channels(false)
@@ -802,7 +802,7 @@ impl BankingSimulator {
802802
// We only need it to write shreds into the blockstore and it seems given ClusterInfo is
803803
// irrelevant for the neccesary minimum work for this simulation.
804804
let random_keypair = Arc::new(Keypair::new());
805-
let cluster_info = Arc::new(ClusterInfo::new(
805+
let cluster_info_for_broadcast = Arc::new(ClusterInfo::new(
806806
Node::new_localhost_with_pubkey(&random_keypair.pubkey()).info,
807807
random_keypair,
808808
SocketAddrSpace::Unspecified,
@@ -811,7 +811,7 @@ impl BankingSimulator {
811811
// inserting produced shreds into the blockstore.
812812
let broadcast_stage = BroadcastStageType::Standard.new_broadcast_stage(
813813
vec![bind_to_localhost().unwrap()],
814-
cluster_info.clone(),
814+
cluster_info_for_broadcast.clone(),
815815
entry_receiver,
816816
retransmit_slots_receiver,
817817
exit.clone(),
@@ -826,7 +826,7 @@ impl BankingSimulator {
826826
let banking_stage = BankingStage::new_num_threads(
827827
block_production_method.clone(),
828828
transaction_struct.clone(),
829-
&cluster_info,
829+
&cluster_info_for_banking,
830830
&poh_recorder,
831831
non_vote_receiver,
832832
tpu_vote_receiver,

core/src/validator.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1003,7 +1003,6 @@ impl Validator {
10031003
} else {
10041004
info!("Disabled banking trace");
10051005
}
1006-
10071006
let banking_tracer_channels = match (
10081007
&config.block_verification_method,
10091008
&config.block_production_method,

0 commit comments

Comments
 (0)