Skip to content

feat: add Network Version 27 skeleton #13125

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 26, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion api/mocks/mock_full.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions api/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ type ForkUpgradeParams struct {
UpgradeTuktukHeight abi.ChainEpoch
UpgradeTeepHeight abi.ChainEpoch
UpgradeTockHeight abi.ChainEpoch
UpgradeXxHeight abi.ChainEpoch
}

// ChainExportConfig holds configuration for chain ranged exports.
Expand Down
2 changes: 1 addition & 1 deletion api/v0api/v0mocks/mock_full.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added build/actors/v17.tar.zst
Binary file not shown.
2 changes: 1 addition & 1 deletion build/buildconstants/params.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,6 @@ const UserAgent = "lotus"
/* inline-gen template
const TestNetworkVersion = network.Version{{.latestNetworkVersion}}
/* inline-gen start */
const TestNetworkVersion = network.Version25
const TestNetworkVersion = network.Version27

/* inline-gen end */
21 changes: 12 additions & 9 deletions build/buildconstants/params_2k.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const GenesisFile = ""
var NetworkBundle = "devnet"
var ActorDebugging = true

var GenesisNetworkVersion = network.Version24
var GenesisNetworkVersion = network.Version26

var UpgradeBreezeHeight = abi.ChainEpoch(-1)

Expand Down Expand Up @@ -72,29 +72,31 @@ const UpgradeWatermelonFixHeight = -100
// This fix upgrade only ran on calibrationnet
const UpgradeWatermelonFix2Height = -101

var UpgradeDragonHeight = abi.ChainEpoch(-24)
var UpgradeDragonHeight = abi.ChainEpoch(-25)

// This fix upgrade only ran on calibrationnet
const UpgradeCalibrationDragonFixHeight = -102

var UpgradePhoenixHeight = abi.ChainEpoch(-25)
var UpgradePhoenixHeight = abi.ChainEpoch(-26)

var UpgradeWaffleHeight = abi.ChainEpoch(-26)
var UpgradeWaffleHeight = abi.ChainEpoch(-27)

var UpgradeTuktukHeight = abi.ChainEpoch(-27)
var UpgradeTuktukHeight = abi.ChainEpoch(-28)

// FIP-0081: for the power actor state for pledge calculations.
// UpgradeTuktukPowerRampDurationEpochs ends up in the power actor state after
// Tuktuk migration. along with a RampStartEpoch matching the upgrade height.
var UpgradeTuktukPowerRampDurationEpochs uint64 = 200

var UpgradeTeepHeight = abi.ChainEpoch(200)
var UpgradeTeepHeight = abi.ChainEpoch(-29)

var UpgradeTeepInitialFilReserved = wholeFIL(1_400_000_000) // FIP-0100: 300M -> 1.4B FIL

var UpgradeTockHeight = abi.ChainEpoch(300)
var UpgradeTockHeight = abi.ChainEpoch(-30)

var UpgradeTockFixHeight = abi.ChainEpoch(-28)
const UpgradeTockFixHeight = -103

var UpgradeXxHeight = abi.ChainEpoch(200)

var DrandSchedule = map[abi.ChainEpoch]DrandEnum{
0: DrandQuicknet,
Expand Down Expand Up @@ -174,7 +176,8 @@ func init() {
UpgradeTuktukHeight = getUpgradeHeight("LOTUS_TUKTUK_HEIGHT", UpgradeTuktukHeight)
UpgradeTeepHeight = getUpgradeHeight("LOTUS_TEEP_HEIGHT", UpgradeTeepHeight)
UpgradeTockHeight = getUpgradeHeight("LOTUS_TOCK_HEIGHT", UpgradeTockHeight)
UpgradeTockFixHeight = getUpgradeHeight("LOTUS_TOCK_FIX_HEIGHT", UpgradeTockFixHeight)
// UpgradeTockFixHeight = getUpgradeHeight("LOTUS_TOCK_FIX_HEIGHT", UpgradeTockFixHeight)
UpgradeXxHeight = getUpgradeHeight("LOTUS_XX_HEIGHT", UpgradeXxHeight)

DrandSchedule = map[abi.ChainEpoch]DrandEnum{
0: DrandQuicknet,
Expand Down
11 changes: 7 additions & 4 deletions build/buildconstants/params_butterfly.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,14 +74,17 @@ const UpgradeTuktukHeight = -28
// Tuktuk migration. along with a RampStartEpoch matching the upgrade height.
var UpgradeTuktukPowerRampDurationEpochs = uint64(builtin.EpochsInYear)

// ??????
const UpgradeTeepHeight = 4320
const UpgradeTeepHeight = -29

var UpgradeTeepInitialFilReserved = wholeFIL(1_600_000_000) // FIP-0100: 300M -> 1.6B FIL

const UpgradeTockHeight = -30

// This fix upgrade only ran on calibrationnet
const UpgradeTockFixHeight = -103

// ??????
const UpgradeTockHeight = UpgradeTeepHeight + builtin.EpochsInDay*2
const UpgradeTockFixHeight = -29
const UpgradeXxHeight = 999999999999999

var ConsensusMinerMinPower = abi.NewStoragePower(2 << 30)
var PreCommitChallengeDelay = abi.ChainEpoch(150)
Expand Down
3 changes: 3 additions & 0 deletions build/buildconstants/params_calibnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,9 @@ var UpgradeTockHeight abi.ChainEpoch = UpgradeTeepHeight + builtin.EpochsInDay*7
// 2025-04-07T23:00:00Z
const UpgradeTockFixHeight abi.ChainEpoch = 2558014

// ??????
const UpgradeXxHeight = 999999999999999

var ConsensusMinerMinPower = abi.NewStoragePower(32 << 30)
var PreCommitChallengeDelay = abi.ChainEpoch(150)

Expand Down
9 changes: 6 additions & 3 deletions build/buildconstants/params_interop.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,16 @@ var UpgradeTuktukHeight = abi.ChainEpoch(-28)
// Tuktuk migration. along with a RampStartEpoch matching the upgrade height.
var UpgradeTuktukPowerRampDurationEpochs = uint64(builtin.EpochsInYear)

const UpgradeTeepHeight abi.ChainEpoch = 50
var UpgradeTeepHeight = abi.ChainEpoch(-29)

var UpgradeTeepInitialFilReserved = InitialFilReserved // FIP-0100: no change for interop

const UpgradeTockHeight abi.ChainEpoch = 100
var UpgradeTockHeight = abi.ChainEpoch(-30)

const UpgradeTockFixHeight abi.ChainEpoch = -29
// This fix upgrade only ran on calibrationnet
const UpgradeTockFixHeight abi.ChainEpoch = -4

const UpgradeXxHeight = 50

var DrandSchedule = map[abi.ChainEpoch]DrandEnum{
0: DrandQuicknet,
Expand Down
7 changes: 5 additions & 2 deletions build/buildconstants/params_mainnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,9 @@ var UpgradeTockHeight = UpgradeTeepHeight + builtin.EpochsInDay*90
// Only applied to calibnet which was already upgraded to Teep&Tock
var UpgradeTockFixHeight = abi.ChainEpoch(-1)

// ??????
var UpgradeXxHeight = abi.ChainEpoch(9999999999)

var UpgradeTeepInitialFilReserved = InitialFilReserved // FIP-0100: no change for mainnet

var ConsensusMinerMinPower = abi.NewStoragePower(10 << 40)
Expand All @@ -155,8 +158,8 @@ func init() {
}
SetAddressNetwork(addrNetwork)

if os.Getenv("LOTUS_DISABLE_TEEP") == "1" {
UpgradeTeepHeight = math.MaxInt64 - 1
if os.Getenv("LOTUS_DISABLE_XX") == "1" {
UpgradeXxHeight = math.MaxInt64 - 1
}

// NOTE: DO NOT change this unless you REALLY know what you're doing. This is not consensus critical, however,
Expand Down
1 change: 1 addition & 0 deletions build/buildconstants/params_testground.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ var (
UpgradeTeepInitialFilReserved *big.Int = wholeFIL(300_000_000)
UpgradeTockHeight abi.ChainEpoch = -32
UpgradeTockFixHeight abi.ChainEpoch = -33
UpgradeXxHeight abi.ChainEpoch = -34

DrandSchedule = map[abi.ChainEpoch]DrandEnum{
0: DrandMainnet,
Expand Down
Loading