-
Notifications
You must be signed in to change notification settings - Fork 274
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Apply more unified scheduler related core cleanups #4453
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -761,6 +761,10 @@ impl BankingSimulator { | |
BANKING_TRACE_DIR_DEFAULT_BYTE_LIMIT, | ||
); | ||
|
||
// Create a partially-dummy ClusterInfo for the banking stage. | ||
let cluster_info_for_banking = Arc::new(DummyClusterInfo { | ||
id: simulated_leader.into(), | ||
}); | ||
Comment on lines
+764
to
+767
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. iirc cluster info is only needed for forwarding. once I remove forwarding from banking stage (soon after #3820) we can get rid of all this I think. |
||
let Channels { | ||
non_vote_sender, | ||
non_vote_receiver, | ||
|
@@ -783,7 +787,7 @@ impl BankingSimulator { | |
// We only need it to write shreds into the blockstore and it seems given ClusterInfo is | ||
// irrelevant for the neccesary minimum work for this simulation. | ||
let random_keypair = Arc::new(Keypair::new()); | ||
let cluster_info = Arc::new(ClusterInfo::new( | ||
let cluster_info_for_broadcast = Arc::new(ClusterInfo::new( | ||
Node::new_localhost_with_pubkey(&random_keypair.pubkey()).info, | ||
random_keypair, | ||
SocketAddrSpace::Unspecified, | ||
|
@@ -792,7 +796,7 @@ impl BankingSimulator { | |
// inserting produced shreds into the blockstore. | ||
let broadcast_stage = BroadcastStageType::Standard.new_broadcast_stage( | ||
vec![bind_to_localhost().unwrap()], | ||
cluster_info.clone(), | ||
cluster_info_for_broadcast.clone(), | ||
entry_receiver, | ||
retransmit_slots_receiver, | ||
exit.clone(), | ||
|
@@ -803,14 +807,10 @@ impl BankingSimulator { | |
); | ||
|
||
info!("Start banking stage!..."); | ||
// Create a partially-dummy ClusterInfo for the banking stage. | ||
let cluster_info = Arc::new(DummyClusterInfo { | ||
id: simulated_leader.into(), | ||
}); | ||
let prioritization_fee_cache = &Arc::new(PrioritizationFeeCache::new(0u64)); | ||
let banking_stage = BankingStage::new_num_threads( | ||
block_production_method.clone(), | ||
&cluster_info, | ||
&cluster_info_for_banking, | ||
&poh_recorder, | ||
non_vote_receiver, | ||
tpu_vote_receiver, | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -59,6 +59,11 @@ pub struct BankingTracer { | |
active_tracer: Option<ActiveTracer>, | ||
} | ||
|
||
#[cfg_attr( | ||
feature = "frozen-abi", | ||
derive(AbiExample), | ||
frozen_abi(digest = "DAdZnX6ijBWaxKAyksq4nJa6PAZqT4RShZqLWTtNvyAM") | ||
)] | ||
Comment on lines
+62
to
+66
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this was temporarily removed by #3974. but it seems the reported build issue disappeared.. |
||
#[derive(Serialize, Deserialize, Debug)] | ||
pub struct TimedTracedEvent(pub std::time::SystemTime, pub TracedEvent); | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should have been removed at the same timing with #4123...