diff --git a/cmd/harmony/main.go b/cmd/harmony/main.go index 617d5381d..8fb0697c6 100644 --- a/cmd/harmony/main.go +++ b/cmd/harmony/main.go @@ -236,7 +236,7 @@ func createGlobalConfig() *nodeconfig.ConfigType { // Set network type netType := nodeconfig.NetworkType(*networkType) switch netType { - case nodeconfig.Mainnet, nodeconfig.Testnet, nodeconfig.Localnet, nodeconfig.Devnet: + case nodeconfig.Mainnet, nodeconfig.Testnet, nodeconfig.Pangaea, nodeconfig.Localnet, nodeconfig.Devnet: nodeConfig.SetNetworkType(netType) default: panic(fmt.Sprintf("invalid network type: %s", *networkType)) @@ -373,6 +373,8 @@ func main() { core.ShardingSchedule = shardingconfig.MainnetSchedule case nodeconfig.Testnet: core.ShardingSchedule = shardingconfig.TestnetSchedule + case nodeconfig.Pangaea: + core.ShardingSchedule = shardingconfig.PangaeaSchedule case nodeconfig.Localnet: core.ShardingSchedule = shardingconfig.LocalnetSchedule case nodeconfig.Devnet: diff --git a/internal/configs/node/config.go b/internal/configs/node/config.go index de8605436..c3bd55c5e 100644 --- a/internal/configs/node/config.go +++ b/internal/configs/node/config.go @@ -50,6 +50,7 @@ type NetworkType string const ( Mainnet = "mainnet" Testnet = "testnet" + Pangaea = "pangaea" Devnet = "devnet" Localnet = "localnet" )