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 564da66
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
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 564da66

Please sign in to comment.