diff --git a/miner/worker.go b/miner/worker.go index 0a754b6e2..bdc2f4c43 100644 --- a/miner/worker.go +++ b/miner/worker.go @@ -768,6 +768,9 @@ func (w *worker) commitTransactions(txs *types.TransactionsByPriceAndNonce, coin legacyGasLimit = w.current.header.GasLimit w.current.gasPool = new(core.GasPool).AddGas(legacyGasLimit) } + if w.chainConfig.IsEIP1559(w.current.header.Number) && w.current.gp1559 == nil { + w.current.gp1559 = new(core.GasPool).AddGas(params.MaxGasEIP1559) + } var coalescedLogs []*types.Log