lotus/cli/params.go
2019-12-04 20:44:15 +01:00

27 lines
555 B
Go

package cli
import (
"github.com/filecoin-project/lotus/build"
"golang.org/x/xerrors"
"gopkg.in/urfave/cli.v2"
)
var fetchParamCmd = &cli.Command{
Name: "fetch-params",
Usage: "Fetch proving parameters",
Flags: []cli.Flag{
&cli.Uint64Flag{
Name: "proving-params",
Usage: "download params used creating proofs for given size",
},
},
Action: func(cctx *cli.Context) error {
err := build.GetParams(cctx.Uint64("proving-params"))
if err != nil {
return xerrors.Errorf("fetching proof parameters: %w", err)
}
return nil
},
}