diff --git a/build/params_2k.go b/build/params_2k.go index bcce509d7..11267db6f 100644 --- a/build/params_2k.go +++ b/build/params_2k.go @@ -3,9 +3,6 @@ package build import ( - "math" - "os" - "github.com/filecoin-project/go-state-types/abi" "github.com/filecoin-project/lotus/chain/actors/policy" ) @@ -18,8 +15,8 @@ const UpgradeIgnitionHeight = -2 const UpgradeRefuelHeight = -3 const UpgradeTapeHeight = -4 -var UpgradeActorsV2Height = abi.ChainEpoch(10) -var UpgradeLiftoffHeight = abi.ChainEpoch(-5) +const UpgradeActorsV2Height = 10 +const UpgradeLiftoffHeight = -5 const UpgradeKumquatHeight = 15 const UpgradeCalicoHeight = 20 @@ -36,11 +33,6 @@ func init() { policy.SetConsensusMinerMinPower(abi.NewStoragePower(2048)) policy.SetMinVerifiedDealSize(abi.NewStoragePower(256)) - if os.Getenv("LOTUS_DISABLE_V2_ACTOR_MIGRATION") == "1" { - UpgradeActorsV2Height = math.MaxInt64 - UpgradeLiftoffHeight = 11 - } - BuildType |= Build2k } diff --git a/build/params_mainnet.go b/build/params_mainnet.go index 195f0dd01..5f23b9b1e 100644 --- a/build/params_mainnet.go +++ b/build/params_mainnet.go @@ -5,7 +5,6 @@ package build import ( - "math" "os" "github.com/filecoin-project/go-address" @@ -27,7 +26,7 @@ const UpgradeSmokeHeight = 51000 const UpgradeIgnitionHeight = 94000 const UpgradeRefuelHeight = 130800 -var UpgradeActorsV2Height = abi.ChainEpoch(138720) +const UpgradeActorsV2Height = 138720 const UpgradeTapeHeight = 140760 @@ -53,10 +52,6 @@ func init() { SetAddressNetwork(address.Mainnet) } - if os.Getenv("LOTUS_DISABLE_V2_ACTOR_MIGRATION") == "1" { - UpgradeActorsV2Height = math.MaxInt64 - } - Devnet = false } diff --git a/cmd/tvx/codenames_test.go b/cmd/tvx/codenames_test.go index 00d107707..bef2e982f 100644 --- a/cmd/tvx/codenames_test.go +++ b/cmd/tvx/codenames_test.go @@ -18,7 +18,7 @@ func TestProtocolCodenames(t *testing.T) { t.Fatal("expected breeze codename") } - if height := build.UpgradeActorsV2Height + 1; GetProtocolCodename(height) != "actorsv2" { + if height := build.UpgradeActorsV2Height + 1; GetProtocolCodename(abi.ChainEpoch(height)) != "actorsv2" { t.Fatal("expected actorsv2 codename") }