Skip to content

Commit

Permalink
fix: test for actor
Browse files Browse the repository at this point in the history
  • Loading branch information
LinZexiao committed Apr 12, 2023
1 parent 6a21bc3 commit 6b499d9
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 15 deletions.
2 changes: 2 additions & 0 deletions fixtures/networks/forcenet.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ func ForceNet() *NetworkConf {
UpgradeSkyrHeight: -19,
UpgradeSharkHeight: -20,
UpgradeHyggeHeight: 30,
UpgradeLightningHeight: 30,
UpgradeThunderHeight: 1000,
},
DrandSchedule: map[abi.ChainEpoch]config.DrandEnum{0: config.DrandMainnet},
AddressNetwork: address.Testnet,
Expand Down
5 changes: 4 additions & 1 deletion fixtures/networks/integrationtestnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,10 @@ func IntegrationNet() *NetworkConf {
UpgradeOhSnapHeight: 1594680,
UpgradeSkyrHeight: 1960320,
UpgradeSharkHeight: 2383680,
UpgradeHyggeHeight: 99999999999999,
UpgradeHyggeHeight: 2683348,
// TODO: set correct upgrade height
UpgradeLightningHeight: 999999999999999,
UpgradeThunderHeight: 999999999999999 + 1,
},
DrandSchedule: map[abi.ChainEpoch]config.DrandEnum{0: 5, 51000: 1},
AddressNetwork: address.Testnet,
Expand Down
4 changes: 2 additions & 2 deletions pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -327,9 +327,9 @@ var DefaultForkUpgradeParam = &ForkUpgradeConfig{
UpgradeOhSnapHeight: 1594680,
UpgradeSkyrHeight: 1960320,
UpgradeSharkHeight: 2383680,
UpgradeHyggeHeight: 99999999999999,
UpgradeHyggeHeight: 2683348,
UpgradeLightningHeight: 99999999999999,
UpgradeThunderHeight: 99999999999999,
UpgradeThunderHeight: 99999999999999 + 1,
}

func newDefaultNetworkParamsConfig() *NetworkParamsConfig {
Expand Down
23 changes: 11 additions & 12 deletions venus-shared/actors/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,23 +16,22 @@ const ({{range .actorVersions}}
/* inline-gen start */


var LatestVersion = 11

var Versions = []int{ 0, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, }
var Versions = []int{0, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11}

const (
Version0 Version = 0
Version2 Version = 2
Version3 Version = 3
Version4 Version = 4
Version5 Version = 5
Version6 Version = 6
Version7 Version = 7
Version8 Version = 8
Version9 Version = 9
Version0 Version = 0
Version2 Version = 2
Version3 Version = 3
Version4 Version = 4
Version5 Version = 5
Version6 Version = 6
Version7 Version = 7
Version8 Version = 8
Version9 Version = 9
Version10 Version = 10
Version11 Version = 11
)

/* inline-gen end */
/* inline-gen end */
1 change: 1 addition & 0 deletions venus-shared/utils/method_map.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ func loadMethodsMap() {
actors = append(actors, actorsWithVersion{av: actorstypes.Version8, actors: builtin.MakeRegistry(actorstypes.Version8)})
actors = append(actors, actorsWithVersion{av: actorstypes.Version9, actors: builtin.MakeRegistry(actorstypes.Version9)})
actors = append(actors, actorsWithVersion{av: actorstypes.Version10, actors: builtin.MakeRegistry(actorstypes.Version10)})
actors = append(actors, actorsWithVersion{av: actorstypes.Version11, actors: builtin.MakeRegistry(actorstypes.Version11)})

for _, awv := range actors {
for _, actor := range awv.actors {
Expand Down

0 comments on commit 6b499d9

Please sign in to comment.