core: adjust gas calculation

release/1.0.1
obscuren 10 years ago
parent 8951a03db3
commit 7595716816
  1. 1
      core/chain_manager.go

@ -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…
Cancel
Save