aboutsummaryrefslogtreecommitdiffstats
path: root/eth/gen_config.go
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2018-08-23 18:02:36 +0800
committerPéter Szilágyi <peterke@gmail.com>2018-08-23 19:09:45 +0800
commit92381ee00999398d0d0928d2c4be82b3334b912b (patch)
treea0bdcae53eace4fbf158c706b8c3cd33831edc8c /eth/gen_config.go
parentf34f361ca6635690f6dd81d6f3bddfff498e9fd6 (diff)
downloaddexon-92381ee00999398d0d0928d2c4be82b3334b912b.tar
dexon-92381ee00999398d0d0928d2c4be82b3334b912b.tar.gz
dexon-92381ee00999398d0d0928d2c4be82b3334b912b.tar.bz2
dexon-92381ee00999398d0d0928d2c4be82b3334b912b.tar.lz
dexon-92381ee00999398d0d0928d2c4be82b3334b912b.tar.xz
dexon-92381ee00999398d0d0928d2c4be82b3334b912b.tar.zst
dexon-92381ee00999398d0d0928d2c4be82b3334b912b.zip
cmd, eth: clean up miner startup API, drop noop config field
Diffstat (limited to 'eth/gen_config.go')
-rw-r--r--eth/gen_config.go5
1 files changed, 0 insertions, 5 deletions
diff --git a/eth/gen_config.go b/eth/gen_config.go
index 62556be7e..a72e35bcd 100644
--- a/eth/gen_config.go
+++ b/eth/gen_config.go
@@ -31,7 +31,6 @@ func (c Config) MarshalTOML() (interface{}, error) {
TrieCache int
TrieTimeout time.Duration
Etherbase common.Address `toml:",omitempty"`
- MinerThreads int `toml:",omitempty"`
MinerNotify []string `toml:",omitempty"`
MinerExtraData hexutil.Bytes `toml:",omitempty"`
MinerGasPrice *big.Int
@@ -55,7 +54,6 @@ func (c Config) MarshalTOML() (interface{}, error) {
enc.TrieCache = c.TrieCache
enc.TrieTimeout = c.TrieTimeout
enc.Etherbase = c.Etherbase
- enc.MinerThreads = c.MinerThreads
enc.MinerNotify = c.MinerNotify
enc.MinerExtraData = c.MinerExtraData
enc.MinerGasPrice = c.MinerGasPrice
@@ -134,9 +132,6 @@ func (c *Config) UnmarshalTOML(unmarshal func(interface{}) error) error {
if dec.Etherbase != nil {
c.Etherbase = *dec.Etherbase
}
- if dec.MinerThreads != nil {
- c.MinerThreads = *dec.MinerThreads
- }
if dec.MinerNotify != nil {
c.MinerNotify = dec.MinerNotify
}