From a50a20b5a710e36424989f39a56e64c252a2273f Mon Sep 17 00:00:00 2001 From: Rjan Date: Tue, 26 Apr 2022 09:10:38 +0200 Subject: [PATCH] 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. --- cmd/lotus-worker/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/lotus-worker/main.go b/cmd/lotus-worker/main.go index 12c5f8dc8..6cd45e0e2 100644 --- a/cmd/lotus-worker/main.go +++ b/cmd/lotus-worker/main.go @@ -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) }