Add disable flag for Skyr upgrade
This commit is contained in:
parent
a081f8d92d
commit
4fa04abb8c
@ -51,7 +51,7 @@ var UpgradeHyperdriveHeight = abi.ChainEpoch(-16)
|
|||||||
var UpgradeChocolateHeight = abi.ChainEpoch(-17)
|
var UpgradeChocolateHeight = abi.ChainEpoch(-17)
|
||||||
|
|
||||||
var UpgradeOhSnapHeight = abi.ChainEpoch(-18)
|
var UpgradeOhSnapHeight = abi.ChainEpoch(-18)
|
||||||
var UpgradeFVM1Height = abi.ChainEpoch(-19)
|
var UpgradeSkyrHeight = abi.ChainEpoch(-19)
|
||||||
|
|
||||||
var ActorsCIDs = map[actors.Version]cid.Cid{}
|
var ActorsCIDs = map[actors.Version]cid.Cid{}
|
||||||
|
|
||||||
@ -97,7 +97,7 @@ func init() {
|
|||||||
UpgradeHyperdriveHeight = getUpgradeHeight("LOTUS_HYPERDRIVE_HEIGHT", UpgradeHyperdriveHeight)
|
UpgradeHyperdriveHeight = getUpgradeHeight("LOTUS_HYPERDRIVE_HEIGHT", UpgradeHyperdriveHeight)
|
||||||
UpgradeChocolateHeight = getUpgradeHeight("LOTUS_CHOCOLATE_HEIGHT", UpgradeChocolateHeight)
|
UpgradeChocolateHeight = getUpgradeHeight("LOTUS_CHOCOLATE_HEIGHT", UpgradeChocolateHeight)
|
||||||
UpgradeOhSnapHeight = getUpgradeHeight("LOTUS_OHSNAP_HEIGHT", UpgradeOhSnapHeight)
|
UpgradeOhSnapHeight = getUpgradeHeight("LOTUS_OHSNAP_HEIGHT", UpgradeOhSnapHeight)
|
||||||
UpgradeFVM1Height = getUpgradeHeight("LOTUS_FVM1_HEIGHT", UpgradeFVM1Height)
|
UpgradeSkyrHeight = getUpgradeHeight("LOTUS_SKYR_HEIGHT", UpgradeSkyrHeight)
|
||||||
|
|
||||||
BuildType |= Build2k
|
BuildType |= Build2k
|
||||||
|
|
||||||
|
@ -47,7 +47,7 @@ const UpgradeChocolateHeight = -17
|
|||||||
|
|
||||||
const UpgradeOhSnapHeight = 240
|
const UpgradeOhSnapHeight = 240
|
||||||
|
|
||||||
var UpgradeFVM1Height = abi.ChainEpoch(99999999999999)
|
var UpgradeSkyrHeight = abi.ChainEpoch(99999999999999)
|
||||||
|
|
||||||
var ActorsCIDs = map[actors.Version]cid.Cid{}
|
var ActorsCIDs = map[actors.Version]cid.Cid{}
|
||||||
|
|
||||||
|
@ -60,7 +60,7 @@ const UpgradeChocolateHeight = 312746
|
|||||||
// 2022-02-10T19:23:00Z
|
// 2022-02-10T19:23:00Z
|
||||||
const UpgradeOhSnapHeight = 682006
|
const UpgradeOhSnapHeight = 682006
|
||||||
|
|
||||||
var UpgradeFVM1Height = abi.ChainEpoch(99999999999999)
|
var UpgradeSkyrHeight = abi.ChainEpoch(99999999999999)
|
||||||
|
|
||||||
var ActorsCIDs = map[actors.Version]cid.Cid{}
|
var ActorsCIDs = map[actors.Version]cid.Cid{}
|
||||||
|
|
||||||
|
@ -51,7 +51,7 @@ var UpgradeTurboHeight = abi.ChainEpoch(-15)
|
|||||||
var UpgradeHyperdriveHeight = abi.ChainEpoch(-16)
|
var UpgradeHyperdriveHeight = abi.ChainEpoch(-16)
|
||||||
var UpgradeChocolateHeight = abi.ChainEpoch(-17)
|
var UpgradeChocolateHeight = abi.ChainEpoch(-17)
|
||||||
var UpgradeOhSnapHeight = abi.ChainEpoch(-18)
|
var UpgradeOhSnapHeight = abi.ChainEpoch(-18)
|
||||||
var UpgradeFVM1Height = abi.ChainEpoch(100)
|
var UpgradeSkyrHeight = abi.ChainEpoch(100)
|
||||||
|
|
||||||
var ActorsCIDs = map[actors.Version]cid.Cid{
|
var ActorsCIDs = map[actors.Version]cid.Cid{
|
||||||
actors.Version8: MustParseCid("bafy2bzaceadr77tamp35bbb3rtio4ver4pnk2cbxqif3nn3mrmxra2nlvwoce"),
|
actors.Version8: MustParseCid("bafy2bzaceadr77tamp35bbb3rtio4ver4pnk2cbxqif3nn3mrmxra2nlvwoce"),
|
||||||
@ -103,7 +103,7 @@ func init() {
|
|||||||
UpgradeHyperdriveHeight = getUpgradeHeight("LOTUS_HYPERDRIVE_HEIGHT", UpgradeHyperdriveHeight)
|
UpgradeHyperdriveHeight = getUpgradeHeight("LOTUS_HYPERDRIVE_HEIGHT", UpgradeHyperdriveHeight)
|
||||||
UpgradeChocolateHeight = getUpgradeHeight("LOTUS_CHOCOLATE_HEIGHT", UpgradeChocolateHeight)
|
UpgradeChocolateHeight = getUpgradeHeight("LOTUS_CHOCOLATE_HEIGHT", UpgradeChocolateHeight)
|
||||||
UpgradeOhSnapHeight = getUpgradeHeight("LOTUS_OHSNAP_HEIGHT", UpgradeOhSnapHeight)
|
UpgradeOhSnapHeight = getUpgradeHeight("LOTUS_OHSNAP_HEIGHT", UpgradeOhSnapHeight)
|
||||||
UpgradeFVM1Height = getUpgradeHeight("LOTUS_FVM1_HEIGHT", UpgradeFVM1Height)
|
UpgradeSkyrHeight = getUpgradeHeight("LOTUS_SKYR_HEIGHT", UpgradeSkyrHeight)
|
||||||
|
|
||||||
BuildType |= BuildInteropnet
|
BuildType |= BuildInteropnet
|
||||||
SetAddressNetwork(address.Testnet)
|
SetAddressNetwork(address.Testnet)
|
||||||
|
@ -73,9 +73,9 @@ const UpgradeHyperdriveHeight = 892800
|
|||||||
const UpgradeChocolateHeight = 1231620
|
const UpgradeChocolateHeight = 1231620
|
||||||
|
|
||||||
// 2022-03-01T15:00:00Z
|
// 2022-03-01T15:00:00Z
|
||||||
var UpgradeOhSnapHeight = abi.ChainEpoch(1594680)
|
const UpgradeOhSnapHeight = 1594680
|
||||||
|
|
||||||
var UpgradeFVM1Height = abi.ChainEpoch(99999999999999)
|
var UpgradeSkyrHeight = abi.ChainEpoch(99999999999999)
|
||||||
|
|
||||||
var ActorsCIDs = map[actors.Version]cid.Cid{}
|
var ActorsCIDs = map[actors.Version]cid.Cid{}
|
||||||
|
|
||||||
@ -84,8 +84,8 @@ func init() {
|
|||||||
SetAddressNetwork(address.Mainnet)
|
SetAddressNetwork(address.Mainnet)
|
||||||
}
|
}
|
||||||
|
|
||||||
if os.Getenv("LOTUS_DISABLE_SNAPDEALS") == "1" {
|
if os.Getenv("LOTUS_DISABLE_SKYR") == "1" {
|
||||||
UpgradeOhSnapHeight = math.MaxInt64
|
UpgradeSkyrHeight = math.MaxInt64
|
||||||
}
|
}
|
||||||
|
|
||||||
Devnet = false
|
Devnet = false
|
||||||
|
@ -101,7 +101,7 @@ var (
|
|||||||
UpgradeHyperdriveHeight abi.ChainEpoch = -15
|
UpgradeHyperdriveHeight abi.ChainEpoch = -15
|
||||||
UpgradeChocolateHeight abi.ChainEpoch = -16
|
UpgradeChocolateHeight abi.ChainEpoch = -16
|
||||||
UpgradeOhSnapHeight abi.ChainEpoch = -17
|
UpgradeOhSnapHeight abi.ChainEpoch = -17
|
||||||
UpgradeFVM1Height abi.ChainEpoch = -18
|
UpgradeSkyrHeight abi.ChainEpoch = -18
|
||||||
|
|
||||||
DrandSchedule = map[abi.ChainEpoch]DrandEnum{
|
DrandSchedule = map[abi.ChainEpoch]DrandEnum{
|
||||||
0: DrandMainnet,
|
0: DrandMainnet,
|
||||||
|
@ -175,7 +175,7 @@ func DefaultUpgradeSchedule() stmgr.UpgradeSchedule {
|
|||||||
}},
|
}},
|
||||||
Expensive: true,
|
Expensive: true,
|
||||||
}, {
|
}, {
|
||||||
Height: build.UpgradeFVM1Height,
|
Height: build.UpgradeSkyrHeight,
|
||||||
Network: network.Version16,
|
Network: network.Version16,
|
||||||
Migration: UpgradeActorsV8,
|
Migration: UpgradeActorsV8,
|
||||||
PreMigrations: []stmgr.PreMigration{{
|
PreMigrations: []stmgr.PreMigration{{
|
||||||
|
@ -300,7 +300,7 @@ func gasEstimateGasLimit(
|
|||||||
|
|
||||||
transitionalMulti := 1.0
|
transitionalMulti := 1.0
|
||||||
// Overestimate gas around the upgrade
|
// Overestimate gas around the upgrade
|
||||||
if ts.Height() <= build.UpgradeFVM1Height && (build.UpgradeFVM1Height-ts.Height() <= 20) {
|
if ts.Height() <= build.UpgradeSkyrHeight && (build.UpgradeSkyrHeight-ts.Height() <= 20) {
|
||||||
transitionalMulti = 2.0
|
transitionalMulti = 2.0
|
||||||
|
|
||||||
func() {
|
func() {
|
||||||
|
Loading…
Reference in New Issue
Block a user