Skip to content

Commit

Permalink
chore: release mainnet (#171)
Browse files Browse the repository at this point in the history
Co-authored-by: nulnut <[email protected]>
  • Loading branch information
zakir-code and nulnut authored Dec 25, 2023
1 parent d5c226b commit 2c20233
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Ref: https://keepachangelog.com/en/1.0.0/

# Change log

## [v6.0.0-rc0]
## [v6.0.0]

### Features

Expand Down
2 changes: 2 additions & 0 deletions cmd/doctor.go
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,8 @@ func checkBlockchainData(bc blockchain, genesisId, privValidatorKeyFile string)
fmt.Printf("%sVersion: v3\n", SPACE)
} else if blockHeight < fxtypes.MainnetBlockHeightV5 {
fmt.Printf("%sVersion: V4\n", SPACE)
} else if blockHeight < fxtypes.MainnetBlockHeightV6 {
fmt.Printf("%sVersion: V5\n", SPACE)
}
}
if chainId == fxtypes.TestnetChainId {
Expand Down
5 changes: 4 additions & 1 deletion server/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -664,7 +664,10 @@ func checkMainnetAndBlock(genesisDoc *tmtypes.GenesisDoc, config *tmcfg.Config)
return errors.New("invalid version: The current block height is less than the v5.0.0 upgrade height(11_601_700)," +
" please use the v4.x.x version to synchronize the block or download the latest snapshot")
}
return errors.New("invalid version: The current version is not released, please use the corresponding version")
if blockStore.Height() < fxtypes.MainnetBlockHeightV6 {
return errors.New("invalid version: The current block height is less than the v6.0.0 upgrade height(13_598_000)," +
" please use the v5.x.x version to synchronize the block or download the latest snapshot")
}
}
return nil
}
1 change: 1 addition & 0 deletions types/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ const (
MainnetBlockHeightV3 = 8_756_000
MainnetBlockHeightV4 = 10_477_500
MainnetBlockHeightV5 = 11_601_700
MainnetBlockHeightV6 = 13_598_000
)

// testnet
Expand Down

0 comments on commit 2c20233

Please sign in to comment.