Skip to content

Commit

Permalink
fix: reduce gas limit for builder block(revert accidentally delete) (#73
Browse files Browse the repository at this point in the history
)
  • Loading branch information
irrun authored Feb 13, 2025
1 parent 79b08e1 commit d5eea0c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions miner/worker_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,14 @@ var (
func (w *worker) fillTransactionsAndBundles(interruptCh chan int32, env *environment, stopTimer *time.Timer) error {
env.state.StopPrefetcher() // no need to prefetch txs for a builder

// reduce gas limit for builder block
fullGasLimit := env.header.GasLimit
env.header.GasLimit /= 2

defer func() {
env.header.GasLimit = fullGasLimit
}()

// commit bundles
{
bundles := w.eth.TxPool().PendingBundles(env.header.Number.Uint64(), env.header.Time)
Expand Down

0 comments on commit d5eea0c

Please sign in to comment.