add param fetch command

This commit is contained in:
whyrusleeping 2019-10-04 13:55:33 -06:00
parent 2525ba40d6
commit 640437e13a
2 changed files with 20 additions and 0 deletions

View File

@ -114,6 +114,7 @@ var Commands = []*cli.Command{
chainCmd,
clientCmd,
createMinerCmd,
fetchParamCmd,
mpoolCmd,
netCmd,
paychCmd,

19
cli/params.go Normal file
View File

@ -0,0 +1,19 @@
package cli
import (
"github.com/filecoin-project/go-lotus/build"
"golang.org/x/xerrors"
"gopkg.in/urfave/cli.v2"
)
var fetchParamCmd = &cli.Command{
Name: "fetch-params",
Usage: "Fetch proving parameters",
Action: func(cctx *cli.Context) error {
if err := build.GetParams(true); err != nil {
return xerrors.Errorf("fetching proof parameters: %w", err)
}
return nil
},
}