Skip to content

Commit

Permalink
fix(shed): lotus-shed f3 certs command -n arg not -N
Browse files Browse the repository at this point in the history
Ref: #12723
  • Loading branch information
rvagg committed Dec 13, 2024
1 parent 4317d1a commit f405247
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cmd/lotus-shed/f3.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ var f3GenExplicitPower = &cli.Command{
},
&cli.IntFlag{
Name: "n",
Usage: "generate N entries, exclusive with ratio",
Usage: "generate n entries, exclusive with ratio",
},
&cli.Float64Flag{
Name: "ratio",
Expand Down Expand Up @@ -110,8 +110,8 @@ var f3GenExplicitPower = &cli.Command{
if err != nil {
return fmt.Errorf("getting chain head: %w", err)
}
if cctx.IsSet("N") && cctx.IsSet("ratio") {
return fmt.Errorf("N and ratio options are exclusive")
if cctx.IsSet("n") && cctx.IsSet("ratio") {
return fmt.Errorf("n and ratio options are exclusive")
}

allPowerEntries, err := api.F3GetECPowerTable(ctx, ts.Key())
Expand Down Expand Up @@ -161,7 +161,7 @@ var f3GenExplicitPower = &cli.Command{
}
rng := rand.New(rand.NewSource(seed))

endSize := cctx.Int("N")
endSize := cctx.Int("n")
if cctx.IsSet("ratio") {
endSize = int(float64(total) * cctx.Float64("ratio"))
}
Expand Down

0 comments on commit f405247

Please sign in to comment.