Skip to content

Commit

Permalink
Merge pull request #5663 from filecoin-project/asr/disable-v3
Browse files Browse the repository at this point in the history
Add a LOTUS_DISABLE_V3_ACTOR_MIGRATION envvar
  • Loading branch information
arajasek authored Feb 23, 2021
2 parents 5dd7e41 + ac06abb commit 4cec037
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion build/params_mainnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
package build

import (
"math"
"os"

"github.com/filecoin-project/go-address"
Expand Down Expand Up @@ -53,7 +54,7 @@ const UpgradeOrangeHeight = 336458
const UpgradeClausHeight = 343200

// 2021-03-04T00:00:30Z
const UpgradeActorsV3Height = 550321
var UpgradeActorsV3Height = abi.ChainEpoch(550321)

func init() {
policy.SetConsensusMinerMinPower(abi.NewStoragePower(10 << 40))
Expand All @@ -62,6 +63,10 @@ func init() {
SetAddressNetwork(address.Mainnet)
}

if os.Getenv("LOTUS_DISABLE_V3_ACTOR_MIGRATION") == "1" {
UpgradeActorsV3Height = math.MaxInt64
}

Devnet = false

BuildType = BuildMainnet
Expand Down

0 comments on commit 4cec037

Please sign in to comment.