MCPcopy Create free account
hub / github.com/ethstorage/es-node / ReadCLIConfig

Function ReadCLIConfig

ethstorage/miner/cli.go:156–171  ·  view source on GitHub ↗
(ctx *cli.Context)

Source from the content-addressed store, hash-verified

154}
155
156func ReadCLIConfig(ctx *cli.Context) CLIConfig {
157 cfg := CLIConfig{
158 Enabled: ctx.GlobalBool(EnabledFlagName),
159 GasPrice: types.GlobalBig(ctx, GasPriceFlagName),
160 PriorityGasPrice: types.GlobalBig(ctx, PriorityGasPriceFlagName),
161 MinimumProfit: types.GlobalBig(ctx, MinimumProfitFlagName),
162 ZKeyFile: ctx.GlobalString(ZKeyFileNameFlagName),
163 ZKWorkingDir: DefaultConfig.ZKWorkingDir,
164 ZKProverMode: ctx.GlobalUint64(ZKProverModeFlagName),
165 ZKProverImpl: ctx.GlobalUint64(ZKProverImplFlagName),
166 ThreadsPerShard: ctx.GlobalUint64(ThreadsPerShardFlagName),
167 EmailEnabled: ctx.GlobalBool(EmailEnabledFlagName),
168 MaxGasPrice: types.GlobalBig(ctx, MaxGasPriceFlagName),
169 }
170 return cfg
171}

Callers 1

NewMinerConfigFunction · 0.92

Calls 1

GlobalBigFunction · 0.92

Tested by

no test coverage detected