good morning!!!!

Skip to content
Snippets Groups Projects
Commit 75957168 authored by Jeffrey Wilcke's avatar Jeffrey Wilcke
Browse files

core: adjust gas calculation

parent 8951a03d
No related branches found
No related tags found
No related merge requests found
......@@ -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 {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment