good morning!!!!

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

Merge pull request #1114 from obscuren/develop

core: block.gasLimit - parent.gasLimit <= parent.gasLimit / GasLimitB…
parents 3590591e be2b0501
No related branches found
No related tags found
No related merge requests found
......@@ -302,7 +302,7 @@ func (sm *BlockProcessor) ValidateHeader(block, parent *types.Header, checkPow b
a := new(big.Int).Sub(block.GasLimit, parent.GasLimit)
a.Abs(a)
b := new(big.Int).Div(parent.GasLimit, params.GasLimitBoundDivisor)
if !(a.Cmp(b) < 0) || (block.GasLimit.Cmp(params.MinGasLimit) == -1) {
if !(a.Cmp(b) <= 0) || (block.GasLimit.Cmp(params.MinGasLimit) == -1) {
return fmt.Errorf("GasLimit check failed for block %v (%v > %v)", block.GasLimit, a, b)
}
......
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