mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-03-18 17:10:43 +00:00
core: adjust gas calculation
This commit is contained in:
parent
8951a03db3
commit
7595716816
1 changed files with 1 additions and 0 deletions
|
|
@ -69,6 +69,7 @@ func CalcGasLimit(parent *types.Block) *big.Int {
|
|||
|
||||
gl := new(big.Int).Sub(parent.GasLimit(), decay)
|
||||
gl = gl.Add(gl, contrib)
|
||||
gl = gl.Add(gl, big.NewInt(1))
|
||||
gl = common.BigMax(gl, params.MinGasLimit)
|
||||
|
||||
if gl.Cmp(params.GenesisGasLimit) < 0 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue