core: adjust gas calculation
This commit is contained in:
parent
8951a03db3
commit
7595716816
|
@ -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 New Issue