Add a LOTUS_DISABLE_V3_ACTOR_MIGRATION envvar

This commit is contained in:
Aayush Rajasekaran 2021-02-23 01:57:42 -05:00
parent 35759fa07e
commit ac06abb964

View File

@ -8,6 +8,7 @@
package build
import (
"math"
"os"
"github.com/filecoin-project/go-address"
@ -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))
@ -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