Skip to content

Commit

Permalink
Give butterfly net correct genesis
Browse files Browse the repository at this point in the history
  • Loading branch information
ZenGround0 committed Apr 12, 2023
1 parent 64b8597 commit 5756d8e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions build/params_2k.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@ var UpgradeSharkHeight = abi.ChainEpoch(-20)

var UpgradeHyggeHeight = abi.ChainEpoch(-21)

var UpgradeLightningHeight = 30
var UpgradeLightningHeight = abi.ChainEpoch(30)

var UpgradeThunderHeight = 1000
var UpgradeThunderHeight = abi.ChainEpoch(1000)

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

const GenesisNetworkVersion = network.Version17
const GenesisNetworkVersion = network.Version18

var NetworkBundle = "butterflynet"
var BundleOverrides map[actorstypes.Version]string
Expand Down Expand Up @@ -50,8 +50,8 @@ const UpgradeHyperdriveHeight = -16
const UpgradeChocolateHeight = -17
const UpgradeOhSnapHeight = -18
const UpgradeSkyrHeight = -19
const UpgradeSharkHeight = abi.ChainEpoch(-20)
const UpgradeHyggeHeight = abi.ChainEpoch(-21)
const UpgradeSharkHeight = -20
const UpgradeHyggeHeight = -21

const UpgradeLightningHeight = 20

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 @@ -1780,7 +1780,7 @@ func upgradeActorsV11Common(

if stateRoot.Version != types.StateTreeVersion5 {
return cid.Undef, xerrors.Errorf(
"expected state root version 4 for actors v11 upgrade, got %d",
"expected state root version 5 for actors v11 upgrade, got %d",
stateRoot.Version,
)
}
Expand Down

0 comments on commit 5756d8e

Please sign in to comment.