Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
syntrust committed Aug 7, 2024
1 parent 51440d3 commit 5b4c4f7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
6 changes: 3 additions & 3 deletions ethstorage/miner/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ type CLIConfig struct {
GasPrice *big.Int
PriorityGasPrice *big.Int
MinimumProfit *big.Int
ZKeyFileName string
ZKeyFile string
ZKWorkingDir string
ZKProverMode uint64
ZKProverImpl uint64
Expand All @@ -118,7 +118,7 @@ func (c CLIConfig) ToMinerConfig() (Config, error) {
}
zkWorkingDir = dir
}
zkFile := c.ZKeyFileName
zkFile := c.ZKeyFile
if !filepath.IsAbs(zkFile) {
dir, err := filepath.Abs(zkFile)
if err != nil {
Expand All @@ -144,7 +144,7 @@ func ReadCLIConfig(ctx *cli.Context) CLIConfig {
GasPrice: types.GlobalBig(ctx, GasPriceFlagName),
PriorityGasPrice: types.GlobalBig(ctx, PriorityGasPriceFlagName),
MinimumProfit: types.GlobalBig(ctx, MinimumProfitFlagName),
ZKeyFileName: ctx.GlobalString(ZKeyFileNameFlagName),
ZKeyFile: ctx.GlobalString(ZKeyFileNameFlagName),
ZKWorkingDir: ctx.GlobalString(ZKWorkingDirFlagName),
ZKProverMode: ctx.GlobalUint64(ZKProverModeFlagName),
ZKProverImpl: ctx.GlobalUint64(ZKProverImplFlagName),
Expand Down
1 change: 0 additions & 1 deletion init-l2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ else
echo "${zkey_file} already exists."
fi

echo "zkp_impl is set to $zkp_impl"
if [ -n "$zkp_impl" ] && [ "$zkp_impl" != 1 ] && [ "$zkp_impl" != 2 ]; then
echo "Error: miner.zk-prover-impl can only be 1 or 2"
exit 1
Expand Down
1 change: 0 additions & 1 deletion init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ else
echo "${zkey_file} already exists."
fi

echo "zkp_impl is set to $zkp_impl"
if [ -n "$zkp_impl" ] && [ "$zkp_impl" != 1 ] && [ "$zkp_impl" != 2 ]; then
echo "Error: miner.zk-prover-impl can only be 1 or 2"
exit 1
Expand Down

0 comments on commit 5b4c4f7

Please sign in to comment.