@@ -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,
0 commit comments