diff options
author | Gustav Simonsson <gustav.simonsson@gmail.com> | 2015-05-27 19:01:06 +0800 |
---|---|---|
committer | Gustav Simonsson <gustav.simonsson@gmail.com> | 2015-05-27 19:01:06 +0800 |
commit | 14955bd4542e422daad5c6b39cfe07cdcb86b230 (patch) | |
tree | 0cdbf7588385586936e86fb9cfbe852acf53e76e /core/block_processor.go | |
parent | f5ce848cfe8cc1912714b8185f8dd3358a16687a (diff) | |
download | go-tangerine-14955bd4542e422daad5c6b39cfe07cdcb86b230.tar go-tangerine-14955bd4542e422daad5c6b39cfe07cdcb86b230.tar.gz go-tangerine-14955bd4542e422daad5c6b39cfe07cdcb86b230.tar.bz2 go-tangerine-14955bd4542e422daad5c6b39cfe07cdcb86b230.tar.lz go-tangerine-14955bd4542e422daad5c6b39cfe07cdcb86b230.tar.xz go-tangerine-14955bd4542e422daad5c6b39cfe07cdcb86b230.tar.zst go-tangerine-14955bd4542e422daad5c6b39cfe07cdcb86b230.zip |
Revert "core: block.gasLimit - parent.gasLimit <= parent.gasLimit / GasLimitBoundDivisor"
This reverts commit be2b0501b5832c0b49f07cdf2db597cc34450199.
Diffstat (limited to 'core/block_processor.go')
-rw-r--r-- | core/block_processor.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/block_processor.go b/core/block_processor.go index e808c03da..037782407 100644 --- a/core/block_processor.go +++ b/core/block_processor.go @@ -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) } |