From 9c33f94f40cdae2deb1bd0115f7c4ccff502a92e Mon Sep 17 00:00:00 2001 From: Ian Norden Date: Tue, 12 Nov 2019 14:19:15 -0600 Subject: [PATCH] apply gas pool/trx execution changes across pkgs --- miner/worker.go | 3 +++ 1 file changed, 3 insertions(+) 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