(ctx *cli.Context)
| 154 | } |
| 155 | |
| 156 | func 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 | } |
no test coverage detected