-
Notifications
You must be signed in to change notification settings - Fork 251
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
Define BankingTracer::create_channels() #4041
Define BankingTracer::create_channels() #4041
Conversation
self.create_channel(ChannelLabel::TpuVote) | ||
} | ||
|
||
pub fn create_channel_gossip_vote(&self) -> (BankingPacketSender, BankingPacketReceiver) { | ||
fn create_channel_gossip_vote(&self) -> (BankingPacketSender, BankingPacketReceiver) { | ||
self.create_channel(ChannelLabel::GossipVote) | ||
} |
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.
these fns are now private
@apfitzge ping :) |
core/src/banking_trace.rs
Outdated
@@ -220,22 +230,85 @@ impl BankingTracer { | |||
self.active_tracer.is_some() | |||
} | |||
|
|||
pub fn create_channels(&self, pool: Option<&Arc<DefaultSchedulerPool>>) -> Channels { |
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.
neat - I actually wanted to experiment with this in central-scheduler as well. Now I don't have to do the work 😄
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.
given that, can we just make this take a bool?
unified-scheduler can have this always be true (Option::is_some) and for central-scheduler can control via some sort of configuration.
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.
done: 1d01404
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.
See https://github.com/anza-xyz/agave/pull/4041/files#r1882325321
Otherwise, love the change
ha. was literally typing my comments as you pinged me 😆 |
Problem
unified scheduler wants to treat all the transactions as same.
Summary of Changes
Unify the incoming channels for the banking stage conditionally. Currently stubbed.
No functional change, so no test is added.
extracted from #3946, see the pr for the general overview.