Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(shed): lotus-shed f3 certs command -n arg not -N #12782

Merged
merged 1 commit into from
Dec 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading