diff --git a/x/upgrade/keeper/keeper.go b/x/upgrade/keeper/keeper.go index 2f492123ff..e4aa18f03b 100644 --- a/x/upgrade/keeper/keeper.go +++ b/x/upgrade/keeper/keeper.go @@ -462,6 +462,8 @@ func (keeper *Keeper) RegisterUpgradePlan(chianID string, plans []serverconfig.U // getExistChainConfig returns the exist chain config func getExistChainConfig(chainID string) *types.UpgradeConfig { switch chainID { + case types.MainnetChainID: + return types.MainnetConfig case types.TestnetChainID: return types.TestnetConfig default: diff --git a/x/upgrade/types/upgrade_config.go b/x/upgrade/types/upgrade_config.go index 659e1c72c1..eba8205025 100644 --- a/x/upgrade/types/upgrade_config.go +++ b/x/upgrade/types/upgrade_config.go @@ -16,6 +16,13 @@ const ( // The default upgrade config for networks var ( + MainnetChainID = "greenfield_1017-1" + MainnetConfig = NewUpgradeConfig().SetPlan(&Plan{ + Name: Nagqu, + Height: 1, + Info: "Nagqu hardfork", + }) + TestnetChainID = "greenfield_5600-1" TestnetConfig = NewUpgradeConfig().SetPlan(&Plan{ Name: Nagqu,