cmd, eth: clean up miner startup API, drop noop config field
This commit is contained in:
		| @@ -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), ",") | ||||
| 	} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user