-
Notifications
You must be signed in to change notification settings - Fork 252
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
Switch build_tpu_quic_client to actually connect to the given validator #4151
Conversation
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.
LGTM will wait for greg's approval
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.
looks mostly look good just wondering if we need the two extra methods
local-cluster/src/cluster.rs
Outdated
fn build_entrypoint_tpu_quic_client(&self) -> Result<QuicTpuClient>; | ||
fn build_entrypoint_tpu_quic_client_with_commitment( |
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.
do we need these two if we can just pass in the pubkey of the entrypoint? we always know entrypoint pubkey since it is s public member of LocalCluster
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.
haha yeah i didn't have these two at first, but a bunch of call sites were using the original default method, so figured might as well expose a convenient way to do this.
Removed the two unnecessary methods
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.
lgtm! thank you!
Problem
Current
fn get_validator_client(&self, pubkey: &Pubkey) -> Option<QuicTpuClient>;
inlocal-cluster/src/cluster.rs
always builds a client connected to the entrypoint validator, even if a different validator is specifiedSummary of Changes
Grab the correct
ContactInfo
from the cluster and conenct to the correct valdiatorFixes #