Skip to content

Commit

Permalink
feat(builder): remove offending UOs after onchain revert
Browse files Browse the repository at this point in the history
  • Loading branch information
dancoombs committed Feb 14, 2025
1 parent 3f0edb3 commit acf478f
Show file tree
Hide file tree
Showing 14 changed files with 383 additions and 199 deletions.
4 changes: 2 additions & 2 deletions bin/rundler/src/cli/proxy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ impl SubmissionProxy for PassThroughProxy {

async fn process_revert(
&self,
_revert_data: Bytes,
_ops: Vec<UserOpsPerAggregator<UserOperationVariant>>,
_revert_data: &Bytes,
_ops: &[UserOpsPerAggregator<UserOperationVariant>],
) -> Vec<B256> {
vec![]
}
Expand Down
4 changes: 2 additions & 2 deletions crates/aggregators/pbh/src/proxy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ impl SubmissionProxy for PbhSubmissionProxy {

async fn process_revert(
&self,
revert_data: Bytes,
_ops: Vec<UserOpsPerAggregator<UserOperationVariant>>,
revert_data: &Bytes,
_ops: &[UserOpsPerAggregator<UserOperationVariant>],
) -> Vec<B256> {
tracing::info!(
"PBH submission proxy received revert data, processing unimplemented: {revert_data:?}"
Expand Down
4 changes: 2 additions & 2 deletions crates/builder/src/bundle_proposer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -896,8 +896,8 @@ where
.to_ops_per_aggregator()
.into_iter()
.map(|uo| uo.into_uo_variants())
.collect();
let to_remove = proxy.process_revert(revert_data.clone(), ops).await;
.collect::<Vec<_>>();
let to_remove = proxy.process_revert(&revert_data, &ops).await;
let mut removed = false;
for hash in to_remove {
removed |= self.reject_hash(context, hash).await;
Expand Down
Loading

0 comments on commit acf478f

Please sign in to comment.