diff options
author | Péter Szilágyi <peterke@gmail.com> | 2018-08-29 17:21:12 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2018-08-29 17:40:12 +0800 |
commit | e8f229b82ef99213f8f84b8a71f752b236024494 (patch) | |
tree | 62f4d24ddfcb9fba0573531995739bcfdbf8b143 /eth/config.go | |
parent | c1c003e4ff36c22d67662ca661fc78cde850d401 (diff) | |
download | go-tangerine-e8f229b82ef99213f8f84b8a71f752b236024494.tar go-tangerine-e8f229b82ef99213f8f84b8a71f752b236024494.tar.gz go-tangerine-e8f229b82ef99213f8f84b8a71f752b236024494.tar.bz2 go-tangerine-e8f229b82ef99213f8f84b8a71f752b236024494.tar.lz go-tangerine-e8f229b82ef99213f8f84b8a71f752b236024494.tar.xz go-tangerine-e8f229b82ef99213f8f84b8a71f752b236024494.tar.zst go-tangerine-e8f229b82ef99213f8f84b8a71f752b236024494.zip |
cmd, core, eth, miner, params: configurable gas floor and ceil
Diffstat (limited to 'eth/config.go')
-rw-r--r-- | eth/config.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/eth/config.go b/eth/config.go index 517d7d8f3..f1a402e37 100644 --- a/eth/config.go +++ b/eth/config.go @@ -48,7 +48,9 @@ var DefaultConfig = Config{ DatabaseCache: 768, TrieCache: 256, TrieTimeout: 60 * time.Minute, - MinerGasPrice: big.NewInt(18 * params.Shannon), + MinerGasFloor: 8000000, + MinerGasCeil: 8000000, + MinerGasPrice: big.NewInt(params.GWei), MinerRecommit: 3 * time.Second, TxPool: core.DefaultTxPoolConfig, @@ -99,6 +101,8 @@ type Config struct { Etherbase common.Address `toml:",omitempty"` MinerNotify []string `toml:",omitempty"` MinerExtraData []byte `toml:",omitempty"` + MinerGasFloor uint64 + MinerGasCeil uint64 MinerGasPrice *big.Int MinerRecommit time.Duration MinerNoverify bool |