Skip to content

Commit 47a3e3f

Browse files
authored
chore: use the correct environment variable for proof params path (#12891)
Use the correct environment variable for proof params path The actual environment variable that sets the proof params fetch path is `FIL_PROOFS_PARAMETER_CACHE` according to `go-paramfetch` implementation. See: * https://github.com/filecoin-project/go-paramfetch/blob/62ad5888f87076c9589d2b63af904b1f89a91b86/paramfetch.go#L31 Fix it in `Dockerfile` to avoid redundant download of params if the wrong env var is set.
1 parent 39c1dd6 commit 47a3e3f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ COPY scripts/docker-lotus-entrypoint.sh /
7575

7676
ARG DOCKER_LOTUS_IMPORT_SNAPSHOT=https://forest-archive.chainsafe.dev/latest/mainnet/
7777
ENV DOCKER_LOTUS_IMPORT_SNAPSHOT ${DOCKER_LOTUS_IMPORT_SNAPSHOT}
78-
ENV FILECOIN_PARAMETER_CACHE /var/tmp/filecoin-proof-parameters
78+
ENV FIL_PROOFS_PARAMETER_CACHE /var/tmp/filecoin-proof-parameters
7979
ENV LOTUS_PATH /var/lib/lotus
8080
ENV DOCKER_LOTUS_IMPORT_WALLET ""
8181

@@ -96,7 +96,7 @@ CMD ["-help"]
9696
#####################################
9797
FROM lotus-base AS lotus-all-in-one
9898

99-
ENV FILECOIN_PARAMETER_CACHE /var/tmp/filecoin-proof-parameters
99+
ENV FIL_PROOFS_PARAMETER_CACHE /var/tmp/filecoin-proof-parameters
100100
ENV LOTUS_MINER_PATH /var/lib/lotus-miner
101101
ENV LOTUS_PATH /var/lib/lotus
102102
ENV LOTUS_WORKER_PATH /var/lib/lotus-worker

0 commit comments

Comments
 (0)