Skip to content

Commit

Permalink
feat(builder): remove polling from transaction tracker, update state …
Browse files Browse the repository at this point in the history
…machine
  • Loading branch information
dancoombs committed Jun 7, 2024
1 parent 0074fe0 commit fe189f1
Show file tree
Hide file tree
Showing 5 changed files with 562 additions and 560 deletions.
6 changes: 6 additions & 0 deletions crates/builder/src/bundle_proposer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,9 @@ where
.map_err(anyhow::Error::from),
self.fee_estimator.required_bundle_fees(required_fees)
)?;
if ops.is_empty() {
return Ok(Bundle::default());
}

tracing::debug!("Starting bundle proposal with {} ops", ops.len());

Expand Down Expand Up @@ -177,6 +180,9 @@ where
.collect::<Vec<_>>();

tracing::debug!("Bundle proposal after fee limit had {} ops", ops.len());
if ops.is_empty() {
return Ok(Bundle::default());
}

// (2) Limit the amount of operations for simulation
let (ops, gas_limit) = self.limit_user_operations_for_simulation(ops);
Expand Down
Loading

0 comments on commit fe189f1

Please sign in to comment.