Merge pull request #5663 from filecoin-project/asr/disable-v3

Add a LOTUS_DISABLE_V3_ACTOR_MIGRATION envvar
This commit is contained in:
Aayush Rajasekaran 2021-02-23 14:09:21 -05:00 committed by GitHub
commit 4cec0375b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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