Skip to content

Commit

Permalink
chore: add SystemTxsGas for Feynman upgrade (#2133)
Browse files Browse the repository at this point in the history
  • Loading branch information
pythonberg1997 authored Jan 4, 2024
1 parent 432085e commit e582264
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion miner/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -711,7 +711,11 @@ func (w *worker) commitTransactions(env *environment, txs *transactionsByPriceAn
gasLimit := env.header.GasLimit
if env.gasPool == nil {
env.gasPool = new(core.GasPool).AddGas(gasLimit)
env.gasPool.SubGas(params.SystemTxsGas * 5)
if w.chain.Config().IsFeynman(env.header.Number, env.header.Time) {
env.gasPool.SubGas(params.SystemTxsGas * 40) // 20,000,000
} else {
env.gasPool.SubGas(params.SystemTxsGas * 5)
}
}

var coalescedLogs []*types.Log
Expand Down

0 comments on commit e582264

Please sign in to comment.