From 759571681604e95b876a03e274c9588529ab204e Mon Sep 17 00:00:00 2001 From: obscuren Date: Wed, 27 May 2015 17:01:28 +0200 Subject: [PATCH] core: adjust gas calculation --- core/chain_manager.go | 1 + 1 file changed, 1 insertion(+) diff --git a/core/chain_manager.go b/core/chain_manager.go index ec479db25c..ee73145c10 100644 --- a/core/chain_manager.go +++ b/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 {