aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/utils
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2018-08-23 19:17:12 +0800
committerGitHub <noreply@github.com>2018-08-23 19:17:12 +0800
commit67d6d0bb7d0e9b18334d45e2d811f00746320d65 (patch)
tree53d2c1847ad134bc88c059b70e7691396e2c5536 /cmd/utils
parent1df1187d831a1c62f61e8c90901dc78b5f86943a (diff)
parent1e63a015a56ae45825c842b5a2b17d2cf2ac1ac6 (diff)
downloaddexon-67d6d0bb7d0e9b18334d45e2d811f00746320d65.tar
dexon-67d6d0bb7d0e9b18334d45e2d811f00746320d65.tar.gz
dexon-67d6d0bb7d0e9b18334d45e2d811f00746320d65.tar.bz2
dexon-67d6d0bb7d0e9b18334d45e2d811f00746320d65.tar.lz
dexon-67d6d0bb7d0e9b18334d45e2d811f00746320d65.tar.xz
dexon-67d6d0bb7d0e9b18334d45e2d811f00746320d65.tar.zst
dexon-67d6d0bb7d0e9b18334d45e2d811f00746320d65.zip
Merge pull request #17492 from karalabe/eth-miner-threads-defaults
cmd, eth: clean up miner startup API, drop noop config field
Diffstat (limited to 'cmd/utils')
-rw-r--r--cmd/utils/flags.go6
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), ",")
}