diff options
author | Jeffrey Wilcke <jeffrey@ethereum.org> | 2015-05-28 01:00:08 +0800 |
---|---|---|
committer | Jeffrey Wilcke <jeffrey@ethereum.org> | 2015-05-28 01:00:08 +0800 |
commit | 5479be9f6412ccd60e86d6c9be972894cf99abdf (patch) | |
tree | ae6c7f6d5bfaf4380bf54cac5fadd291b08ee1a7 /core | |
parent | 903b95fffabf0f8c94594b69d95747772e6abed8 (diff) | |
parent | 020006a8ede0463346ad3d4ae318d299eee63fb1 (diff) | |
download | dexon-5479be9f6412ccd60e86d6c9be972894cf99abdf.tar dexon-5479be9f6412ccd60e86d6c9be972894cf99abdf.tar.gz dexon-5479be9f6412ccd60e86d6c9be972894cf99abdf.tar.bz2 dexon-5479be9f6412ccd60e86d6c9be972894cf99abdf.tar.lz dexon-5479be9f6412ccd60e86d6c9be972894cf99abdf.tar.xz dexon-5479be9f6412ccd60e86d6c9be972894cf99abdf.tar.zst dexon-5479be9f6412ccd60e86d6c9be972894cf99abdf.zip |
Merge pull request #1129 from obscuren/database_cache_removal
ethdb, common: cache removal
Diffstat (limited to 'core')
-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 { |