Skip to content

Commit

Permalink
Extract client code in send_transaction_service into a new structure.
Browse files Browse the repository at this point in the history
This is the same as PR#3423 but with minimized API changes in STS.
In order to be able to use new client code in the `SendTransactionService`, I need to wrap network-related code with the new structure ConnectionCacheClient.
To to that I also had to move some auxiliary code into separate files.
  • Loading branch information
KirillLykov committed Jan 3, 2025
1 parent 6cb14fd commit 78cadad
Show file tree
Hide file tree
Showing 8 changed files with 493 additions and 457 deletions.
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions programs/sbf/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions send-transaction-service/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ edition = { workspace = true }

[dependencies]
crossbeam-channel = { workspace = true }
itertools = { workspace = true }
log = { workspace = true }
solana-client = { workspace = true }
solana-connection-cache = { workspace = true }
Expand Down
6 changes: 6 additions & 0 deletions send-transaction-service/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
#![allow(clippy::arithmetic_side_effects)]
pub mod send_transaction_service;
pub mod send_transaction_service_stats;
pub mod tpu_info;
pub mod transaction_client;
pub use {
send_transaction_service_stats::SendTransactionServiceStats,
transaction_client::{CurrentLeaderInfo, LEADER_INFO_REFRESH_RATE_MS},
};

#[macro_use]
extern crate solana_metrics;
Loading

0 comments on commit 78cadad

Please sign in to comment.