Skip to content

Refactor ClientOption to solana-client crate#7735

Merged
lijunwangs merged 2 commits intoanza-xyz:masterfrom
lijunwangs:refactor_client_option
Aug 27, 2025
Merged

Refactor ClientOption to solana-client crate#7735
lijunwangs merged 2 commits intoanza-xyz:masterfrom
lijunwangs:refactor_client_option

Conversation

@lijunwangs
Copy link
Copy Markdown

Problem

ClientOption can be used for multiple use cases, leaving it in RPC is a misnomer.

Summary of Changes

Moving ClientOption to the more opportune Solana-client crate

Fixes #

@lijunwangs lijunwangs marked this pull request as ready for review August 27, 2025 17:27
/// connections efficiently.
/// * [`TpuClientNextClient`]: Relies on the `tpu-client-next` crate and
/// requires a reference to a [`Keypair`].
pub enum ClientOption<'a> {
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wanted to say that it can be used also in forwarding_stage.rs. But the ForwardingClientOption now supports multihoming so it is not the same now. to double check, @alexpyattaev am i right that multihoming is irrelevant for rpc and also for the votes over quic?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. I will see if we can integrate that for forward in the future PRs.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

refactoring and sharing ForwardingClientOption is problematic because of NodeMultihoming is declared in gossip. We need a new home for this code in order for it to be used in solana-client.

Copy link
Copy Markdown

@KirillLykov KirillLykov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks like a good idea to move it there

@codecov-commenter
Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 83.0%. Comparing base (9bcbde8) to head (8a19f5d).
⚠️ Report is 14 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##           master    #7735     +/-   ##
=========================================
- Coverage    83.0%    83.0%   -0.1%     
=========================================
  Files         812      812             
  Lines      357192   357192             
=========================================
- Hits       296771   296766      -5     
- Misses      60421    60426      +5     
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@lijunwangs lijunwangs merged commit 5290d76 into anza-xyz:master Aug 27, 2025
54 checks passed
alexpyattaev pushed a commit to alexpyattaev/agave that referenced this pull request Aug 27, 2025
* Refactor ClientOption to solana-client crate

* cargo.toml style
alexpyattaev pushed a commit to alexpyattaev/agave that referenced this pull request Aug 27, 2025
* Refactor ClientOption to solana-client crate

* cargo.toml style
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants