From f405247fb8da293de6bfc4d82c2e396c4aa44598 Mon Sep 17 00:00:00 2001 From: Rod Vagg Date: Fri, 13 Dec 2024 20:49:05 +1100 Subject: [PATCH] fix(shed): lotus-shed f3 certs command -n arg not -N Ref: https://github.com/filecoin-project/lotus/pull/12723 --- cmd/lotus-shed/f3.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cmd/lotus-shed/f3.go b/cmd/lotus-shed/f3.go index aef53b7710..9f212e734f 100644 --- a/cmd/lotus-shed/f3.go +++ b/cmd/lotus-shed/f3.go @@ -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", @@ -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()) @@ -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")) }