fix: worker: Download proofs if PRU2 is enabled

The lotus-worker does not check or download the params if Prove Replica Update tasks are enabled.
This commit is contained in:
Rjan 2022-04-26 09:10:38 +02:00
parent 1162b02e60
commit a50a20b5a7

View File

@ -289,7 +289,7 @@ var runCmd = &cli.Command{
return err
}
if cctx.Bool("commit") {
if cctx.Bool("commit") || cctx.Bool("prove-replica-update2") {
if err := paramfetch.GetParams(ctx, build.ParametersJSON(), build.SrsJSON(), uint64(ssize)); err != nil {
return xerrors.Errorf("get params: %w", err)
}