Skip to content

Commit

Permalink
Merge pull request #5545 from filecoin-project/fix/forcenet-bundle
Browse files Browse the repository at this point in the history
fix: forcenet use testing bundle
  • Loading branch information
diwufeiwen authored Dec 12, 2022
2 parents 59a0c52 + 4190a50 commit 8b8674b
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 8b8674b

Please sign in to comment.