Upgrade to version 11 at Norwegian height

This commit is contained in:
Aayush Rajasekaran 2021-03-29 18:48:43 -04:00
parent c1600ad6d1
commit cea46e5f53
7 changed files with 12 additions and 1 deletions

View File

@ -28,6 +28,7 @@ const UpgradeOrangeHeight = 27
const UpgradeClausHeight = 30 const UpgradeClausHeight = 30
const UpgradeActorsV3Height = 35 const UpgradeActorsV3Height = 35
const UpgradeNorwegianHeight = 40
var DrandSchedule = map[abi.ChainEpoch]DrandEnum{ var DrandSchedule = map[abi.ChainEpoch]DrandEnum{
0: DrandMainnet, 0: DrandMainnet,

View File

@ -32,6 +32,7 @@ const UpgradePersianHeight = 150
const UpgradeClausHeight = 180 const UpgradeClausHeight = 180
const UpgradeOrangeHeight = 210 const UpgradeOrangeHeight = 210
const UpgradeActorsV3Height = 240 const UpgradeActorsV3Height = 240
const UpgradeNorwegianHeight = 999999
func init() { func init() {
policy.SetConsensusMinerMinPower(abi.NewStoragePower(2 << 30)) policy.SetConsensusMinerMinPower(abi.NewStoragePower(2 << 30))

View File

@ -40,6 +40,7 @@ const UpgradeClausHeight = 250
const UpgradeOrangeHeight = 300 const UpgradeOrangeHeight = 300
const UpgradeActorsV3Height = 600 const UpgradeActorsV3Height = 600
const UpgradeNorwegianHeight = 114000
func init() { func init() {
policy.SetConsensusMinerMinPower(abi.NewStoragePower(32 << 30)) policy.SetConsensusMinerMinPower(abi.NewStoragePower(32 << 30))

View File

@ -56,6 +56,9 @@ const UpgradeClausHeight = 343200
// 2021-03-04T00:00:30Z // 2021-03-04T00:00:30Z
var UpgradeActorsV3Height = abi.ChainEpoch(550321) var UpgradeActorsV3Height = abi.ChainEpoch(550321)
// 2021-04-12T22:00:00Z
const UpgradeNorwegianHeight = 665280
func init() { func init() {
policy.SetConsensusMinerMinPower(abi.NewStoragePower(10 << 40)) policy.SetConsensusMinerMinPower(abi.NewStoragePower(10 << 40))

View File

@ -39,6 +39,7 @@ const UpgradeClausHeight = 250
const UpgradeOrangeHeight = 300 const UpgradeOrangeHeight = 300
const UpgradeActorsV3Height = 600 const UpgradeActorsV3Height = 600
const UpgradeNorwegianHeight = 999999
func init() { func init() {
// Minimum block production power is set to 4 TiB // Minimum block production power is set to 4 TiB

View File

@ -21,7 +21,7 @@ func VersionForNetwork(version network.Version) Version {
return Version0 return Version0
case network.Version4, network.Version5, network.Version6, network.Version7, network.Version8, network.Version9: case network.Version4, network.Version5, network.Version6, network.Version7, network.Version8, network.Version9:
return Version2 return Version2
case network.Version10: case network.Version10, network.Version11:
return Version3 return Version3
default: default:
panic(fmt.Sprintf("unsupported network version %d", version)) panic(fmt.Sprintf("unsupported network version %d", version))

View File

@ -186,6 +186,10 @@ func DefaultUpgradeSchedule() UpgradeSchedule {
StopWithin: 5, StopWithin: 5,
}}, }},
Expensive: true, Expensive: true,
}, {
Height: build.UpgradeNorwegianHeight,
Network: network.Version11,
Migration: nil,
}} }}
for _, u := range updates { for _, u := range updates {