Skip to content

Commit

Permalink
fix: forcenet use testing bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
simlecode committed Dec 7, 2022
1 parent dfbc433 commit 4190a50
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
7 changes: 5 additions & 2 deletions venus-shared/actors/builtin_actors.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,12 @@ func init() {
func SetNetworkBundle(networkType int) error {
networkBundle := ""
switch networkType {
// case types.Network2k, types.NetworkForce:
case 0x2, 0x7:
// case types.Network2k:
case 0x2:
networkBundle = "devnet"
// types.NetworkForce
case 0x7:
networkBundle = "testing"
// case types.NetworkButterfly:
case 0x8:
networkBundle = "butterflynet"
Expand Down
1 change: 1 addition & 0 deletions venus-shared/types/api_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ const (
NetworkNameButterfly NetworkName = "butterflynet"
NetworkNameInterop NetworkName = "interopnet"
NetworkNameIntegration NetworkName = "integrationnet"
NetworkNameForce NetworkName = "forcenet"
)

type NetworkType int
Expand Down
5 changes: 3 additions & 2 deletions venus-shared/utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ var NetworkNameWithNetworkType = map[types.NetworkName]types.NetworkType{
types.NetworkNameButterfly: types.NetworkButterfly,
types.NetworkNameInterop: types.NetworkInterop,
types.NetworkNameIntegration: types.Integrationnet,
types.NetworkNameForce: types.NetworkForce,
}

var NetworkTypeWithNetworkName = func() map[types.NetworkType]types.NetworkName {
Expand All @@ -33,7 +34,7 @@ func NetworkNameToNetworkType(networkName types.NetworkName) (types.NetworkType,
if ok {
return nt, nil
}
// 2k and force networks do not have exact network names
// 2k network do not have exact network names
return types.Network2k, nil
}

Expand All @@ -43,7 +44,7 @@ func NetworkTypeToNetworkName(networkType types.NetworkType) types.NetworkName {
return nn
}

// 2k and force networks do not have exact network names
// 2k network do not have exact network names
return ""
}

Expand Down

0 comments on commit 4190a50

Please sign in to comment.