Skip to content

Commit

Permalink
fix(op-geth): fix merge bundle logic
Browse files Browse the repository at this point in the history
  • Loading branch information
redhdx committed Jul 30, 2024
1 parent 17986c9 commit 3642aee
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions miner/worker_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,10 @@ func (w *worker) mergeBundles(

simulatedBundle, err := w.simulateBundle(env, bundle.OriginalBundle, currentState, gasPool, len(includedTxs), true, false)

if err != nil && errors.Is(err, core.ErrGasLimitReached) {
log.Error("failed to merge bundle, interrupt merge process", "err", err)
break
}
if err != nil || simulatedBundle.BundleGasPrice.Cmp(floorGasPrice) <= 0 {
currentState = prevState
gasPool = prevGasPool
Expand Down

0 comments on commit 3642aee

Please sign in to comment.