Skip to content

Commit

Permalink
chore: bump deps, set calibnet nv25 epoch, change nv25-codename (#12754)
Browse files Browse the repository at this point in the history
* chore: update codename for nv25 to "Teep"
* chore: set upgrade epoch for Calibration net
* chore: fix GenesisNetworkVersion for butterfly
* chore: set upgrade height for butterflynet
* chore: update to builtin-actors v16.0.0-rc1
* chore: update go-state-types to v0.16.0-rc1
* chore: update filecoin-ffi to v1.32.0-rc1
  • Loading branch information
rjan90 authored Dec 5, 2024
1 parent 1f51140 commit 0857ce5
Show file tree
Hide file tree
Showing 17 changed files with 154 additions and 153 deletions.
2 changes: 1 addition & 1 deletion api/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ type ForkUpgradeParams struct {
UpgradePhoenixHeight abi.ChainEpoch
UpgradeWaffleHeight abi.ChainEpoch
UpgradeTuktukHeight abi.ChainEpoch
UpgradeXxHeight abi.ChainEpoch
UpgradeTeepHeight abi.ChainEpoch
}

// ChainExportConfig holds configuration for chain ranged exports.
Expand Down
Binary file modified build/actors/v16.tar.zst
Binary file not shown.
4 changes: 2 additions & 2 deletions build/buildconstants/params_2k.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ var UpgradeWaffleHeight = abi.ChainEpoch(-26)

var UpgradeTuktukHeight = abi.ChainEpoch(-27)

var UpgradeXxHeight = abi.ChainEpoch(200)
var UpgradeTeepHeight = abi.ChainEpoch(200)

// FIP-0081: for the power actor state for pledge calculations.
// UpgradeTuktukPowerRampDurationEpochs ends up in the power actor state after
Expand Down Expand Up @@ -169,7 +169,7 @@ func init() {
UpgradeWaffleHeight = getUpgradeHeight("LOTUS_WAFFLE_HEIGHT", UpgradeWaffleHeight)
UpgradePhoenixHeight = getUpgradeHeight("LOTUS_PHOENIX_HEIGHT", UpgradePhoenixHeight)
UpgradeTuktukHeight = getUpgradeHeight("LOTUS_TUKTUK_HEIGHT", UpgradeTuktukHeight)
UpgradeXxHeight = getUpgradeHeight("LOTUS_XX_HEIGHT", UpgradeXxHeight)
UpgradeTeepHeight = getUpgradeHeight("LOTUS_TEEP_HEIGHT", UpgradeTeepHeight)

DrandSchedule = map[abi.ChainEpoch]DrandEnum{
0: DrandQuicknet,
Expand Down
4 changes: 2 additions & 2 deletions build/buildconstants/params_butterfly.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ var DrandSchedule = map[abi.ChainEpoch]DrandEnum{
0: DrandQuicknet,
}

const GenesisNetworkVersion = network.Version22
const GenesisNetworkVersion = network.Version24

var NetworkBundle = "butterflynet"
var ActorDebugging = false
Expand Down Expand Up @@ -59,7 +59,7 @@ const UpgradeWaffleHeight = -27
const UpgradeTuktukHeight = -28

// ??????
const UpgradeXxHeight = 999999999999999
const UpgradeTeepHeight = 100

// FIP-0081: for the power actor state for pledge calculations.
// UpgradeTuktukPowerRampDurationEpochs ends up in the power actor state after
Expand Down
4 changes: 2 additions & 2 deletions build/buildconstants/params_calibnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ const UpgradeWaffleHeight = 1779094
// 2024-10-23T13:30:00Z
const UpgradeTuktukHeight = 2078794

// ??????
const UpgradeXxHeight = 999999999999999
// 2024-12-16T23:00:00Z
const UpgradeTeepHeight = 2235454

// FIP-0081: for the power actor state for pledge calculations.
// UpgradeTuktukPowerRampDurationEpochs ends up in the power actor state after
Expand Down
2 changes: 1 addition & 1 deletion build/buildconstants/params_interop.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ var UpgradePhoenixHeight = abi.ChainEpoch(-26)
var UpgradeWaffleHeight = abi.ChainEpoch(-27)
var UpgradeTuktukHeight = abi.ChainEpoch(-28)

const UpgradeXxHeight = 50
const UpgradeTeepHeight = 50

// FIP-0081: for the power actor state for pledge calculations.
// UpgradeTuktukPowerRampDurationEpochs ends up in the power actor state after
Expand Down
6 changes: 3 additions & 3 deletions build/buildconstants/params_mainnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ const UpgradeWaffleHeight abi.ChainEpoch = 4154640
var UpgradeTuktukHeight abi.ChainEpoch = 4461240

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

// FIP-0081: for the power actor state for pledge calculations.
// UpgradeTuktukPowerRampDurationEpochs ends up in the power actor state after
Expand Down Expand Up @@ -149,8 +149,8 @@ func init() {
}
SetAddressNetwork(addrNetwork)

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

// NOTE: DO NOT change this unless you REALLY know what you're doing. This is not consensus critical, however,
Expand Down
2 changes: 1 addition & 1 deletion build/buildconstants/params_testground.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ var (
UpgradeCalibrationDragonFixHeight abi.ChainEpoch = -28
UpgradeWaffleHeight abi.ChainEpoch = -29
UpgradeTuktukHeight abi.ChainEpoch = -30
UpgradeXxHeight abi.ChainEpoch = -31
UpgradeTeepHeight abi.ChainEpoch = -31

UpgradeTuktukPowerRampDurationEpochs uint64 = 0

Expand Down
252 changes: 126 additions & 126 deletions build/builtin_actors_gen.go

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions build/openrpc/full.json
Original file line number Diff line number Diff line change
Expand Up @@ -19907,7 +19907,7 @@
"UpgradePhoenixHeight": 10101,
"UpgradeWaffleHeight": 10101,
"UpgradeTuktukHeight": 10101,
"UpgradeXxHeight": 10101
"UpgradeTeepHeight": 10101
},
"Eip155ChainID": 123
}
Expand Down Expand Up @@ -20021,6 +20021,10 @@
"title": "number",
"type": "number"
},
"UpgradeTeepHeight": {
"title": "number",
"type": "number"
},
"UpgradeThunderHeight": {
"title": "number",
"type": "number"
Expand All @@ -20044,10 +20048,6 @@
"UpgradeWatermelonHeight": {
"title": "number",
"type": "number"
},
"UpgradeXxHeight": {
"title": "number",
"type": "number"
}
},
"type": "object"
Expand Down
2 changes: 1 addition & 1 deletion chain/consensus/filcns/upgrades.go
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ func DefaultUpgradeSchedule() stmgr.UpgradeSchedule {
}},
Expensive: true,
}, {
Height: buildconstants.UpgradeXxHeight,
Height: buildconstants.UpgradeTeepHeight,
Network: network.Version25,
Migration: UpgradeActorsV16,
PreMigrations: []stmgr.PreMigration{{
Expand Down
2 changes: 1 addition & 1 deletion documentation/en/api-v0-methods.md
Original file line number Diff line number Diff line change
Expand Up @@ -4485,7 +4485,7 @@ Response:
"UpgradePhoenixHeight": 10101,
"UpgradeWaffleHeight": 10101,
"UpgradeTuktukHeight": 10101,
"UpgradeXxHeight": 10101
"UpgradeTeepHeight": 10101
},
"Eip155ChainID": 123
}
Expand Down
2 changes: 1 addition & 1 deletion documentation/en/api-v1-unstable-methods.md
Original file line number Diff line number Diff line change
Expand Up @@ -6796,7 +6796,7 @@ Response:
"UpgradePhoenixHeight": 10101,
"UpgradeWaffleHeight": 10101,
"UpgradeTuktukHeight": 10101,
"UpgradeXxHeight": 10101
"UpgradeTeepHeight": 10101
},
"Eip155ChainID": 123
}
Expand Down
2 changes: 1 addition & 1 deletion extern/filecoin-ffi
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ require (
github.com/filecoin-project/go-jsonrpc v0.7.0
github.com/filecoin-project/go-padreader v0.0.1
github.com/filecoin-project/go-paramfetch v0.0.4
github.com/filecoin-project/go-state-types v0.16.0-dev
github.com/filecoin-project/go-state-types v0.16.0-rc1
github.com/filecoin-project/go-statemachine v1.0.3
github.com/filecoin-project/go-statestore v0.2.0
github.com/filecoin-project/go-storedcounter v0.1.0
Expand Down Expand Up @@ -131,7 +131,7 @@ require (
github.com/raulk/go-watchdog v1.3.0
github.com/samber/lo v1.39.0
github.com/sirupsen/logrus v1.9.2
github.com/stretchr/testify v1.9.0
github.com/stretchr/testify v1.10.0
github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7
github.com/triplewz/poseidon v0.0.2
github.com/urfave/cli/v2 v2.25.5
Expand Down
7 changes: 4 additions & 3 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -298,8 +298,8 @@ github.com/filecoin-project/go-state-types v0.0.0-20200928172055-2df22083d8ab/go
github.com/filecoin-project/go-state-types v0.0.0-20201102161440-c8033295a1fc/go.mod h1:ezYnPf0bNkTsDibL/psSz5dy4B5awOJ/E7P2Saeep8g=
github.com/filecoin-project/go-state-types v0.1.0/go.mod h1:ezYnPf0bNkTsDibL/psSz5dy4B5awOJ/E7P2Saeep8g=
github.com/filecoin-project/go-state-types v0.1.6/go.mod h1:UwGVoMsULoCK+bWjEdd/xLCvLAQFBC7EDT477SKml+Q=
github.com/filecoin-project/go-state-types v0.16.0-dev h1:66GP8xfo0elYdLLGxQ4LcAhAvOqKf4IiJkRYxU7UH2M=
github.com/filecoin-project/go-state-types v0.16.0-dev/go.mod h1:k0/j7i06QHRet86mv9/8gregMq59tv+yCr655G9zsX8=
github.com/filecoin-project/go-state-types v0.16.0-rc1 h1:/51MhupBAjfmWygUKDZCdLOzAnKFcayPHX9ApTswgmo=
github.com/filecoin-project/go-state-types v0.16.0-rc1/go.mod h1:4rjTgHP6LWrkQXQCgx+dRGDa0gnk4WiJVCFwZtuDOGE=
github.com/filecoin-project/go-statemachine v1.0.3 h1:N07o6alys+V1tNoSTi4WuuoeNC4erS/6jE74+NsgQuk=
github.com/filecoin-project/go-statemachine v1.0.3/go.mod h1:jZdXXiHa61n4NmgWFG4w8tnqgvZVHYbJ3yW7+y8bF54=
github.com/filecoin-project/go-statestore v0.1.0/go.mod h1:LFc9hD+fRxPqiHiaqUEZOinUJB4WARkRfNl10O7kTnI=
Expand Down Expand Up @@ -1246,8 +1246,9 @@ github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO
github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4=
github.com/stretchr/testify v1.8.3/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo=
github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo=
github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg=
github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA=
github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
github.com/stvp/go-udp-testing v0.0.0-20201019212854-469649b16807/go.mod h1:7jxmlfBCDBXRzr0eAQJ48XC1hBu1np4CS5+cHEYfwpc=
github.com/syndtr/goleveldb v1.0.0/go.mod h1:ZVVdQEZoIme9iO1Ch2Jdy24qqXrMMOU6lpPAyBWyWuQ=
github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7 h1:epCh84lMvA70Z7CTTCmYQn2CKbY8j86K7/FAIr141uY=
Expand Down
2 changes: 1 addition & 1 deletion node/impl/full/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -2079,7 +2079,7 @@ func (a *StateAPI) StateGetNetworkParams(ctx context.Context) (*api.NetworkParam
UpgradePhoenixHeight: buildconstants.UpgradePhoenixHeight,
UpgradeWaffleHeight: buildconstants.UpgradeWaffleHeight,
UpgradeTuktukHeight: buildconstants.UpgradeTuktukHeight,
UpgradeXxHeight: buildconstants.UpgradeXxHeight,
UpgradeTeepHeight: buildconstants.UpgradeTeepHeight,
},
}, nil
}

0 comments on commit 0857ce5

Please sign in to comment.