From 721786da1048736023e499d0f57d4644d6f6c7c9 Mon Sep 17 00:00:00 2001 From: whyrusleeping Date: Thu, 7 Nov 2019 22:06:08 -0800 Subject: [PATCH] add a flag to allow only fetching verifying keys --- cli/params.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/cli/params.go b/cli/params.go index 6f6017ca3..9e8183b8a 100644 --- a/cli/params.go +++ b/cli/params.go @@ -9,8 +9,14 @@ import ( var fetchParamCmd = &cli.Command{ Name: "fetch-params", Usage: "Fetch proving parameters", + Flags: []cli.Flag{ + &cli.BoolFlag{ + Name: "only-verify-keys", + Usage: "only download the verify keys", + }, + }, Action: func(cctx *cli.Context) error { - if err := build.GetParams(true); err != nil { + if err := build.GetParams(!cctx.Bool("only-verify-keys")); err != nil { return xerrors.Errorf("fetching proof parameters: %w", err) }