diff --git a/venus-shared/actors/builtin_actors.go b/venus-shared/actors/builtin_actors.go index 98b69ef187..6d3fad3d0c 100644 --- a/venus-shared/actors/builtin_actors.go +++ b/venus-shared/actors/builtin_actors.go @@ -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" diff --git a/venus-shared/types/api_types.go b/venus-shared/types/api_types.go index 44b190c967..63b96576e9 100644 --- a/venus-shared/types/api_types.go +++ b/venus-shared/types/api_types.go @@ -77,6 +77,7 @@ const ( NetworkNameButterfly NetworkName = "butterflynet" NetworkNameInterop NetworkName = "interopnet" NetworkNameIntegration NetworkName = "integrationnet" + NetworkNameForce NetworkName = "forcenet" ) type NetworkType int diff --git a/venus-shared/utils/utils.go b/venus-shared/utils/utils.go index 1182ccd5ed..ac7b057887 100644 --- a/venus-shared/utils/utils.go +++ b/venus-shared/utils/utils.go @@ -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 { @@ -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 } @@ -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 "" }