diff --git a/CHANGELOG.md b/CHANGELOG.md index 0c48c3da44..f3efa6a042 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## [Unreleased] + +### Improvements + +- [#](https://github.com/crypto-org-chain/cronos/pull/) Enforce chainID config in client.toml. + *October 17, 2023* ## v1.1.0-rc1 diff --git a/cmd/cronosd/cmd/root.go b/cmd/cronosd/cmd/root.go index 65d4502059..f1e6c2cc5a 100644 --- a/cmd/cronosd/cmd/root.go +++ b/cmd/cronosd/cmd/root.go @@ -269,6 +269,9 @@ func (a appCreator) newApp(logger log.Logger, db dbm.DB, traceStore io.Writer, a } chainID = conf.ChainID } + if len(chainID) == 0 { + panic("chainID not set") + } baseappOptions := server.DefaultBaseappOptions(appOpts) baseappOptions = append(baseappOptions, func(app *baseapp.BaseApp) { baseapp.SetChainID(chainID)