diff options
author | Wei-Ning Huang <w@dexon.org> | 2018-10-31 14:00:13 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@byzantine-lab.io> | 2019-06-12 17:27:17 +0800 |
commit | 0cbf04193ea79661f191cdaaca8f179d8b5db999 (patch) | |
tree | 07be18996fb0524204cd4f58567297350fae933a /dex/app.go | |
parent | 0f189998574d54b8e2d64642b6b689f35a09d23a (diff) | |
download | go-tangerine-0cbf04193ea79661f191cdaaca8f179d8b5db999.tar go-tangerine-0cbf04193ea79661f191cdaaca8f179d8b5db999.tar.gz go-tangerine-0cbf04193ea79661f191cdaaca8f179d8b5db999.tar.bz2 go-tangerine-0cbf04193ea79661f191cdaaca8f179d8b5db999.tar.lz go-tangerine-0cbf04193ea79661f191cdaaca8f179d8b5db999.tar.xz go-tangerine-0cbf04193ea79661f191cdaaca8f179d8b5db999.tar.zst go-tangerine-0cbf04193ea79661f191cdaaca8f179d8b5db999.zip |
dex: add block gas limit into governance
Diffstat (limited to 'dex/app.go')
-rw-r--r-- | dex/app.go | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/dex/app.go b/dex/app.go index a226aaa0c..b325f44d0 100644 --- a/dex/app.go +++ b/dex/app.go @@ -411,11 +411,10 @@ func (d *DexconApp) BlockDelivered(blockHash coreCommon.Hash, result coreTypes.F } newBlock := types.NewBlock(&types.Header{ - Number: new(big.Int).SetUint64(result.Height), - Time: big.NewInt(result.Timestamp.Unix()), - Coinbase: common.BytesToAddress(block.ProposerID.Bytes()), - // TODO(bojie): fix it - GasLimit: 8000000, + Number: new(big.Int).SetUint64(result.Height), + Time: big.NewInt(result.Timestamp.Unix()), + Coinbase: common.BytesToAddress(block.ProposerID.Bytes()), + GasLimit: d.gov.DexconConfiguration(block.Position.Round).BlockGasLimit, Difficulty: big.NewInt(1), Round: block.Position.Round, DexconMeta: dexconMeta, |