Skip to content

Commit 7600937

Browse files
authored
chore: remove builder helper in favor of flashbots (#166)
This PR removes the BuilderHelper task.
1 parent 68cdc75 commit 7600937

File tree

6 files changed

+7
-345
lines changed

6 files changed

+7
-345
lines changed

Cargo.lock

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ alloy = { version = "1.0.37", features = [
4343
] }
4444

4545
axum = "0.7.5"
46-
chrono = "0.4.40"
4746
eyre = "0.6.12"
4847
openssl = { version = "0.10", features = ["vendored"] }
4948
reqwest = { version = "0.12.22", features = ["blocking", "json"] }

src/config.rs

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use crate::{
22
quincey::Quincey,
33
tasks::{
44
block::{cfg::SignetCfgEnv, sim::SimResult},
5-
submit::{BuilderHelperTask, FlashbotsTask},
5+
submit::FlashbotsTask,
66
},
77
};
88
use alloy::{
@@ -188,6 +188,7 @@ pub struct BuilderConfig {
188188
/// The slot calculator for the builder.
189189
pub slot_calculator: SlotCalculator,
190190

191+
// TODO: Make this compatible with FromEnv again, somehow it broke
191192
/// The signet system constants.
192193
pub constants: SignetSystemConstants,
193194
}
@@ -329,19 +330,10 @@ impl BuilderConfig {
329330
&self,
330331
tx_channel: UnboundedSender<TxHash>,
331332
) -> eyre::Result<(UnboundedSender<SimResult>, JoinHandle<()>)> {
332-
match &self.flashbots_endpoint {
333-
Some(url) => {
334-
info!(url = url.as_str(), "spawning flashbots submit task");
335-
let submit = FlashbotsTask::new(self.clone(), tx_channel).await?;
336-
let (submit_channel, submit_jh) = submit.spawn();
337-
Ok((submit_channel, submit_jh))
338-
}
339-
None => {
340-
info!("spawning builder helper submit task");
341-
let submit = BuilderHelperTask::new(self.clone(), tx_channel).await?;
342-
let (submit_channel, submit_jh) = submit.spawn();
343-
Ok((submit_channel, submit_jh))
344-
}
345-
}
333+
let url = self.flashbots_endpoint.as_ref().expect("flashbots endpoint must be configured");
334+
info!(url = url.as_str(), "spawning flashbots submit task");
335+
let submit = FlashbotsTask::new(self.clone(), tx_channel).await?;
336+
let (submit_channel, submit_jh) = submit.spawn();
337+
Ok((submit_channel, submit_jh))
346338
}
347339
}

src/tasks/submit/builder_helper.rs

Lines changed: 0 additions & 319 deletions
This file was deleted.

src/tasks/submit/mod.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,6 @@ pub use prep::{Bumpable, SubmitPrep};
44
mod sim_err;
55
pub use sim_err::{SimErrorResp, SimRevertKind};
66

7-
/// Submission logic for the BundleHelper contract
8-
pub mod builder_helper;
9-
pub use builder_helper::{BuilderHelperTask, ControlFlow};
10-
117
/// Submission logic for Flashbots
128
pub mod flashbots;
139
pub use flashbots::FlashbotsTask;

0 commit comments

Comments
 (0)