Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add Nagqu fork to mainnet #317

Merged
merged 2 commits into from
Oct 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions x/upgrade/keeper/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
7 changes: 7 additions & 0 deletions x/upgrade/types/upgrade_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Loading