diff options
author | obscuren <geffobscura@gmail.com> | 2015-05-27 23:01:28 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-05-27 23:01:28 +0800 |
commit | 759571681604e95b876a03e274c9588529ab204e (patch) | |
tree | 83baa4df7d4e7427bf3506bda829fc82f98113ce | |
parent | 8951a03db39a2a877ada34c927d78352d465303e (diff) | |
download | dexon-759571681604e95b876a03e274c9588529ab204e.tar dexon-759571681604e95b876a03e274c9588529ab204e.tar.gz dexon-759571681604e95b876a03e274c9588529ab204e.tar.bz2 dexon-759571681604e95b876a03e274c9588529ab204e.tar.lz dexon-759571681604e95b876a03e274c9588529ab204e.tar.xz dexon-759571681604e95b876a03e274c9588529ab204e.tar.zst dexon-759571681604e95b876a03e274c9588529ab204e.zip |
core: adjust gas calculation
-rw-r--r-- | core/chain_manager.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/chain_manager.go b/core/chain_manager.go index ec479db25..ee73145c1 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 { |