diff --git a/eth/catalyst/api_test.go b/eth/catalyst/api_test.go index 593c629446..f6ed0282d1 100644 --- a/eth/catalyst/api_test.go +++ b/eth/catalyst/api_test.go @@ -83,6 +83,7 @@ func generateTestChainWithFork(n int, fork int) (*core.Genesis, []*types.Block, NielsBlock: big.NewInt(0), MirrorSyncBlock: big.NewInt(0), BrunoBlock: big.NewInt(0), + EulerBlock: big.NewInt(0), Ethash: new(params.EthashConfig), } diff --git a/miner/worker.go b/miner/worker.go index 6715213e94..687dc4c7ea 100644 --- a/miner/worker.go +++ b/miner/worker.go @@ -761,7 +761,12 @@ func (w *worker) commitTransactions(txs *types.TransactionsByPriceAndNonce, coin if w.current.gasPool == nil { w.current.gasPool = new(core.GasPool).AddGas(w.current.header.GasLimit) - w.current.gasPool.SubGas(params.SystemTxsGas) + if w.chain.Config().IsEuler(w.current.header.Number) { + w.current.gasPool.SubGas(params.SystemTxsGas * 3) + } else { + w.current.gasPool.SubGas(params.SystemTxsGas) + } + } var coalescedLogs []*types.Log