Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions src/tasks/submit/flashbots.rs
Original file line number Diff line number Diff line change
Expand Up @@ -175,19 +175,24 @@ impl FlashbotsTask {
counter!("signet.builder.flashbots.bundle_prep_failures").increment(1);
span_debug!(span, %error, "bundle preparation failed");
});

let bundle = match result {
Ok(bundle) => bundle,
Err(_) => continue,
};

// Make a child span to cover submission
// Make a child span to cover submission, or use the current span
// if debug is not enabled.
let _guard = span.enter();
let submit_span = debug_span!(
parent: &span,
"flashbots.submit",
);
)
.or_current();

// Send the bundle to Flashbots, instrumenting the send future so all
// events inside the async send are attributed to the submit span.
// Send the bundle to Flashbots, instrumenting the send future so
// all events inside the async send are attributed to the submit
// span.
let flashbots = self.flashbots().to_owned();
let signer = self.signer.clone();

Expand Down
8 changes: 4 additions & 4 deletions src/tasks/submit/mod.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/// Submission logic for Flashbots
pub mod flashbots;
pub use flashbots::FlashbotsTask;

mod prep;
pub use prep::{Bumpable, SubmitPrep};

mod sim_err;
pub use sim_err::{SimErrorResp, SimRevertKind};

/// Submission logic for Flashbots
pub mod flashbots;
pub use flashbots::FlashbotsTask;