Merge pull request #284 from nguyenbatam/fix_gas_limit_for_block_equal_param

fix gas limit for block equal param
This commit is contained in:
Tam Nguyen 2018-11-15 09:31:04 +07:00 committed by GitHub
commit 407a556362
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -532,7 +532,7 @@ func (self *worker) commitNewWork() {
header := &types.Header{
ParentHash: parent.Hash(),
Number: num.Add(num, common.Big1),
GasLimit: core.CalcGasLimit(parent),
GasLimit: params.TargetGasLimit,
Extra: self.extra,
Time: big.NewInt(tstamp),
}