From 2335aa91ad0ab2fe7c2b328695f9919d2d9538d4 Mon Sep 17 00:00:00 2001 From: hunjixin <1084400399@qq.com> Date: Fri, 24 Mar 2023 11:23:45 +0800 Subject: [PATCH 1/3] feat: add docker push --- Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile b/Makefile index 8e97aeabe4..4eb49692d8 100644 --- a/Makefile +++ b/Makefile @@ -128,3 +128,6 @@ docker: $(BUILD_DEPS) curl -O https://raw.githubusercontent.com/filecoin-project/venus-docs/master/script/docker/dockerfile docker build --build-arg https_proxy=$(BUILD_DOCKER_PROXY) --build-arg BUILD_TARGET=venus -t venus . docker tag venus:latest filvenus/venus:$(TAG) + +docker-push: docker + docker push filvenus/venus:$(TAG) From 4d4c31e64aa7cede5af56f577404b66ec5111623 Mon Sep 17 00:00:00 2001 From: hunjixin <1084400399@qq.com> Date: Mon, 27 Mar 2023 15:46:46 +0800 Subject: [PATCH 2/3] feat: add private registry tag --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 4eb49692d8..a5531a53a5 100644 --- a/Makefile +++ b/Makefile @@ -127,7 +127,7 @@ TAG:=test docker: $(BUILD_DEPS) curl -O https://raw.githubusercontent.com/filecoin-project/venus-docs/master/script/docker/dockerfile docker build --build-arg https_proxy=$(BUILD_DOCKER_PROXY) --build-arg BUILD_TARGET=venus -t venus . - docker tag venus:latest filvenus/venus:$(TAG) + docker tag venus:latest $(PRIVATE_REGISTRY)/filvenus/venus:$(TAG) docker-push: docker - docker push filvenus/venus:$(TAG) + docker push $(PRIVATE_REGISTRY)/filvenus/venus:$(TAG) From cfc6e7d80e011fd2816ac1e42e3cde28c0d471ca Mon Sep 17 00:00:00 2001 From: hunjixin <1084400399@qq.com> Date: Wed, 29 Mar 2023 10:29:49 +0800 Subject: [PATCH 3/3] feat: use env to control insecurepost --- pkg/constants/chain_parameters.go | 6 +----- pkg/constants/env.go | 3 +++ 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/pkg/constants/chain_parameters.go b/pkg/constants/chain_parameters.go index 339fd8ab04..be4d408ae5 100644 --- a/pkg/constants/chain_parameters.go +++ b/pkg/constants/chain_parameters.go @@ -1,10 +1,9 @@ package constants import ( - "math" - "github.com/filecoin-project/go-state-types/abi" builtin0 "github.com/filecoin-project/specs-actors/actors/builtin" + "math" ) const ( @@ -34,9 +33,6 @@ const ( const MainNetBlockDelaySecs = uint64(builtin0.EpochDurationSeconds) -// todo move this value to config -var InsecurePoStValidation = false - const ( NoTimeout = math.MaxInt64 NoHeight = abi.ChainEpoch(-1) diff --git a/pkg/constants/env.go b/pkg/constants/env.go index d92caf305e..3c76426116 100644 --- a/pkg/constants/env.go +++ b/pkg/constants/env.go @@ -4,3 +4,6 @@ import "os" // FevmEnableEthRPC enables eth rpc, and enables storing a mapping of eth transaction hashes to filecoin message Cids. var FevmEnableEthRPC = os.Getenv("VENUS_FEVM_ENABLEETHRPC") == "1" + +// InsecurePoStValidation use to attach debug +var InsecurePoStValidation = os.Getenv("INSECURE_POST_VALIDATION") == "1"