diff --git a/Makefile b/Makefile index 4671abcea2..696fc403f6 100644 --- a/Makefile +++ b/Makefile @@ -129,4 +129,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 $(PRIVATE_REGISTRY)/filvenus/venus:$(TAG) 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"