aboutsummaryrefslogtreecommitdiffstats
path: root/core/chain_manager.go
diff options
context:
space:
mode:
authorJeffrey Wilcke <jeffrey@ethereum.org>2015-05-28 01:00:08 +0800
committerJeffrey Wilcke <jeffrey@ethereum.org>2015-05-28 01:00:08 +0800
commit5479be9f6412ccd60e86d6c9be972894cf99abdf (patch)
treeae6c7f6d5bfaf4380bf54cac5fadd291b08ee1a7 /core/chain_manager.go
parent903b95fffabf0f8c94594b69d95747772e6abed8 (diff)
parent020006a8ede0463346ad3d4ae318d299eee63fb1 (diff)
downloadgo-tangerine-5479be9f6412ccd60e86d6c9be972894cf99abdf.tar.gz
go-tangerine-5479be9f6412ccd60e86d6c9be972894cf99abdf.tar.zst
go-tangerine-5479be9f6412ccd60e86d6c9be972894cf99abdf.zip
Merge pull request #1129 from obscuren/database_cache_removal
ethdb, common: cache removal
Diffstat (limited to 'core/chain_manager.go')
-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 {