diff options
author | Péter Szilágyi <peterke@gmail.com> | 2018-08-23 18:02:36 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2018-08-23 19:09:45 +0800 |
commit | 92381ee00999398d0d0928d2c4be82b3334b912b (patch) | |
tree | a0bdcae53eace4fbf158c706b8c3cd33831edc8c /cmd/utils | |
parent | f34f361ca6635690f6dd81d6f3bddfff498e9fd6 (diff) | |
download | go-tangerine-92381ee00999398d0d0928d2c4be82b3334b912b.tar.gz go-tangerine-92381ee00999398d0d0928d2c4be82b3334b912b.tar.zst go-tangerine-92381ee00999398d0d0928d2c4be82b3334b912b.zip |
cmd, eth: clean up miner startup API, drop noop config field
Diffstat (limited to 'cmd/utils')
-rw-r--r-- | cmd/utils/flags.go | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/cmd/utils/flags.go b/cmd/utils/flags.go index c9a936dd5..b9a33ffe7 100644 --- a/cmd/utils/flags.go +++ b/cmd/utils/flags.go @@ -1130,12 +1130,6 @@ func SetEthConfig(ctx *cli.Context, stack *node.Node, cfg *eth.Config) { if ctx.GlobalIsSet(CacheFlag.Name) || ctx.GlobalIsSet(CacheGCFlag.Name) { cfg.TrieCache = ctx.GlobalInt(CacheFlag.Name) * ctx.GlobalInt(CacheGCFlag.Name) / 100 } - if ctx.GlobalIsSet(MinerLegacyThreadsFlag.Name) { - cfg.MinerThreads = ctx.GlobalInt(MinerLegacyThreadsFlag.Name) - } - if ctx.GlobalIsSet(MinerThreadsFlag.Name) { - cfg.MinerThreads = ctx.GlobalInt(MinerThreadsFlag.Name) - } if ctx.GlobalIsSet(MinerNotifyFlag.Name) { cfg.MinerNotify = strings.Split(ctx.GlobalString(MinerNotifyFlag.Name), ",") } |