aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-05-27 23:01:28 +0800
committerobscuren <geffobscura@gmail.com>2015-05-27 23:01:28 +0800
commit759571681604e95b876a03e274c9588529ab204e (patch)
tree83baa4df7d4e7427bf3506bda829fc82f98113ce
parent8951a03db39a2a877ada34c927d78352d465303e (diff)
downloaddexon-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.go1
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 {