Skip to content

Commit

Permalink
Clean up solver (#2405)
Browse files Browse the repository at this point in the history
# Description
There was an external contribution working on a TODO comment inside the
solver crate. This code actually was no longer used anywhere so they
effectively wasted their time.
We also regularly get comments asking about the `solver` crate and
explaining the current state is always a bit weird.

# Changes
I tried to delete everything from the `solver` crate that was not used
in the other crates.

## How to test
CI
  • Loading branch information
MartinquaXD authored Feb 14, 2024
1 parent 0e68186 commit 06e9c4e
Show file tree
Hide file tree
Showing 49 changed files with 29 additions and 14,534 deletions.
5 changes: 2 additions & 3 deletions crates/driver/src/boundary/mempool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ use {
submitter::{
flashbots_api::FlashbotsApi,
public_mempool_api::{PublicMempoolApi, SubmissionNode, SubmissionNodeKind},
Strategy,
Submitter,
SubmitterGasPriceEstimator,
SubmitterParams,
Expand Down Expand Up @@ -122,14 +121,14 @@ impl Mempool {
)],
matches!(revert_protection, RevertProtection::Enabled),
)),
submitted_transactions: pool.add_sub_pool(Strategy::PublicMempool),
submitted_transactions: pool.add_sub_pool(),
gas_price_estimator: eth.boundary_gas_estimator(),
config,
eth,
},
Kind::MEVBlocker { url, .. } => Self {
submit_api: Arc::new(FlashbotsApi::new(reqwest::Client::new(), url.to_owned())?),
submitted_transactions: pool.add_sub_pool(Strategy::Flashbots),
submitted_transactions: pool.add_sub_pool(),
gas_price_estimator: eth.boundary_gas_estimator(),
config,
eth,
Expand Down
4 changes: 0 additions & 4 deletions crates/solver/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@ name = "solver"
path = "src/lib.rs"
doctest = false

[[bin]]
name = "solver"
path = "src/main.rs"

[dependencies]
anyhow = { workspace = true }
async-trait = { workspace = true }
Expand Down
153 changes: 0 additions & 153 deletions crates/solver/src/analytics.rs

This file was deleted.

Loading

0 comments on commit 06e9c4e

Please sign in to comment.