Skip to content

Commit bbde89d

Browse files
committed
cleanup
1 parent 88a7ec9 commit bbde89d

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

src/tasks/submit/flashbots.rs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -142,14 +142,17 @@ impl FlashbotsTask {
142142
.await;
143143

144144
match response {
145-
Ok(Some(_)) => {}
145+
Ok(Some(hash)) => {
146+
tracing::info!(?hash, "bundle submitted to flashbots");
147+
span_debug!(span, "bundle included in a block");
148+
}
146149
Ok(None) => {
147-
tracing::info!("block submitted to flashbots");
148-
span_debug!(span, "block submitted to flashbots");
150+
tracing::info!("bundle submitted to flashbots");
151+
span_debug!(span, "bundle submitted to flashbots");
149152
}
150153
Err(e) => {
151154
tracing::error!(error = %e, "failed to submit MEV bundle to flashbots");
152-
span_debug!(span, "bundle submission failed - error returned");
155+
span_debug!(span, "MEV bundle submission failed - error returned");
153156
}
154157
}
155158
}

src/tasks/submit/prep.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,6 @@ impl<'a> SubmitPrep<'a> {
129129

130130
/// Prepares a transaction for submission to the host chain.
131131
pub async fn prep_transaction(self, prev_host: &Header) -> eyre::Result<Bumpable> {
132-
debug!(prev_host = ?prev_host, "preparing transaction for submission to host chain");
133132
let req = self.new_tx_request().in_current_span().await?;
134133
Ok(Bumpable::new(req, prev_host))
135134
}
@@ -145,7 +144,6 @@ pub struct Bumpable {
145144
impl Bumpable {
146145
/// Instantiate a new `Bumpable` transaction request.
147146
pub fn new(mut req: TransactionRequest, prev_host: &Header) -> Self {
148-
debug!(prev_host = ?prev_host, "populating initial gas values into bumpable tx");
149147
utils::populate_initial_gas(&mut req, prev_host);
150148
Self { req, bumps: 0 }
151149
}

0 commit comments

Comments
 (0)