Rename to --include-test-params

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
This commit is contained in:
Jakub Sztandera 2019-11-14 17:43:33 +01:00
parent bc3dac0426
commit 383c5c0c6f
No known key found for this signature in database
GPG Key ID: 9A9AF56F8B3879BA
3 changed files with 4 additions and 4 deletions

View File

@ -29,7 +29,7 @@ commands:
- 'v15-lotus-params-'
paths:
- /var/tmp/filecoin-proof-parameters/
- run: ./lotus fetch-params --tests-also
- run: ./lotus fetch-params --include-test-params
- save_cache:
name: Save parameters cache
key: 'v15-lotus-params-{{ checksum "build/proof-params/parameters.json" }}'

View File

@ -15,12 +15,12 @@ var fetchParamCmd = &cli.Command{
Usage: "only download the verify keys",
},
&cli.BoolFlag{
Name: "tests-also",
Name: "include-test-params",
Usage: "download params used for tests",
},
},
Action: func(cctx *cli.Context) error {
err := build.GetParams(!cctx.Bool("only-verify-keys"), cctx.Bool("tests-also"))
err := build.GetParams(!cctx.Bool("only-verify-keys"), cctx.Bool("include-test-params"))
if err != nil {
return xerrors.Errorf("fetching proof parameters: %w", err)
}

View File

@ -25,7 +25,7 @@ func TestSealAndVerify(t *testing.T) {
build.SectorSizes = []uint64{sectorSize}
if err := build.GetParams(true); err != nil {
if err := build.GetParams(true, true); err != nil {
t.Fatalf("%+v", err)
}