aboutsummaryrefslogtreecommitdiffstats
path: root/core
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 /core
parent8951a03db39a2a877ada34c927d78352d465303e (diff)
downloadgo-tangerine-759571681604e95b876a03e274c9588529ab204e.tar
go-tangerine-759571681604e95b876a03e274c9588529ab204e.tar.gz
go-tangerine-759571681604e95b876a03e274c9588529ab204e.tar.bz2
go-tangerine-759571681604e95b876a03e274c9588529ab204e.tar.lz
go-tangerine-759571681604e95b876a03e274c9588529ab204e.tar.xz
go-tangerine-759571681604e95b876a03e274c9588529ab204e.tar.zst
go-tangerine-759571681604e95b876a03e274c9588529ab204e.zip
core: adjust gas calculation
Diffstat (limited to 'core')
-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 {