Skip to content

Commit

Permalink
Reapply changes from reverted PR 3423 (#4257)
Browse files Browse the repository at this point in the history
* Extract client code in send_transaction_service into a new structure.

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.

* reexport some structures in the send_transaction_service

* move back all the displaced structs

* modify one log message

* Move back Config to threads

* unpack config only in process_transactions

* Use reference structure unpack in arg list

(cherry picked from commit 4fe5092)

# Conflicts:
#	svm/examples/Cargo.lock
  • Loading branch information
KirillLykov authored and mergify[bot] committed Jan 28, 2025
1 parent c48f513 commit e684843
Show file tree
Hide file tree
Showing 5 changed files with 10,196 additions and 245 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
Loading

0 comments on commit e684843

Please sign in to comment.