Skip to content

Commit

Permalink
no need --miner.zk-working-dir
Browse files Browse the repository at this point in the history
  • Loading branch information
syntrust committed Aug 13, 2024
1 parent e70ef18 commit a6c7f99
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions ethstorage/miner/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ const (
GasPriceFlagName = "miner.gas-price"
PriorityGasPriceFlagName = "miner.priority-gas-price"
ZKeyFileNameFlagName = "miner.zkey"
ZKWorkingDirFlagName = "miner.zk-working-dir"
ZKProverModeFlagName = "miner.zk-prover-mode"
ZKProverImplFlagName = "miner.zk-prover-impl"
ThreadsPerShardFlagName = "miner.threads-per-shard"
Expand Down Expand Up @@ -59,12 +58,6 @@ func CLIFlags(envPrefix string) []cli.Flag {
Value: DefaultConfig.ZKeyFile,
EnvVar: rollup.PrefixEnvVar(envPrefix, "ZKEY_FILE"),
},
cli.StringFlag{
Name: ZKWorkingDirFlagName,
Usage: "Path to the snark library folder",
Value: DefaultConfig.ZKWorkingDir,
EnvVar: rollup.PrefixEnvVar(envPrefix, "ZK_WORKING_DIR"),
},
cli.Uint64Flag{
Name: ZKProverModeFlagName,
Usage: "ZK prover mode, 1: one proof per sample, 2: one proof for multiple samples",
Expand Down Expand Up @@ -145,7 +138,7 @@ func ReadCLIConfig(ctx *cli.Context) CLIConfig {
PriorityGasPrice: types.GlobalBig(ctx, PriorityGasPriceFlagName),
MinimumProfit: types.GlobalBig(ctx, MinimumProfitFlagName),
ZKeyFile: ctx.GlobalString(ZKeyFileNameFlagName),
ZKWorkingDir: ctx.GlobalString(ZKWorkingDirFlagName),
ZKWorkingDir: DefaultConfig.ZKWorkingDir,
ZKProverMode: ctx.GlobalUint64(ZKProverModeFlagName),
ZKProverImpl: ctx.GlobalUint64(ZKProverImplFlagName),
ThreadsPerShard: ctx.GlobalUint64(ThreadsPerShardFlagName),
Expand Down

0 comments on commit a6c7f99

Please sign in to comment.