|
|
@ -255,7 +255,7 @@ func createGlobalConfig() *nodeconfig.ConfigType { |
|
|
|
netType := nodeconfig.NetworkType(*networkType) |
|
|
|
netType := nodeconfig.NetworkType(*networkType) |
|
|
|
switch netType { |
|
|
|
switch netType { |
|
|
|
case nodeconfig.Mainnet, nodeconfig.Testnet, nodeconfig.Pangaea, nodeconfig.Localnet, nodeconfig.Devnet: |
|
|
|
case nodeconfig.Mainnet, nodeconfig.Testnet, nodeconfig.Pangaea, nodeconfig.Localnet, nodeconfig.Devnet: |
|
|
|
nodeConfig.SetNetworkType(netType) |
|
|
|
nodeconfig.SetNetworkType(netType) |
|
|
|
default: |
|
|
|
default: |
|
|
|
panic(fmt.Sprintf("invalid network type: %s", *networkType)) |
|
|
|
panic(fmt.Sprintf("invalid network type: %s", *networkType)) |
|
|
|
} |
|
|
|
} |
|
|
|