diff --git a/CHANGELOG.md b/CHANGELOG.md index 6d3b7d6777..bbfd2ccbf8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,13 +6,6 @@ See [RELEASE](./RELEASE.md) for workflow instructions. ### Upgrade information -#### Stricter configuration parsing - -With [#5466](https://github.com/spacemeshos/go-spacemesh/pull/5466) The configuration parser now rejects unknown -settings in the configuration file. This means that if you have old settings that are not used by the node anymore in -your configuration file, the node will fail to start informing you about the unknown settings. To fix this, remove the -unknown fields and start the node again. - #### New poets configuration Upgrading requires changes in config and in CLI flags (if not using the default). diff --git a/node/node.go b/node/node.go index 725eb3197d..46d0da8f28 100644 --- a/node/node.go +++ b/node/node.go @@ -277,7 +277,6 @@ func LoadConfigFromFile() (*config.Config, error) { viper.DecodeHook(hook), withZeroFields(), withIgnoreUntagged(), - withErrorUnused(), } // load config if it was loaded to the viper @@ -299,12 +298,6 @@ func withIgnoreUntagged() viper.DecoderConfigOption { } } -func withErrorUnused() viper.DecoderConfigOption { - return func(cfg *mapstructure.DecoderConfig) { - cfg.ErrorUnused = true - } -} - // Option to modify an App instance. type Option func(app *App)