Skip to content

Commit

Permalink
Remove ErrorUnused
Browse files Browse the repository at this point in the history
  • Loading branch information
fasmat committed Jan 19, 2024
1 parent ddfcbf5 commit 4969300
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
7 changes: 0 additions & 7 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down
7 changes: 0 additions & 7 deletions node/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,6 @@ func LoadConfigFromFile() (*config.Config, error) {
viper.DecodeHook(hook),
withZeroFields(),
withIgnoreUntagged(),
withErrorUnused(),
}

// load config if it was loaded to the viper
Expand All @@ -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)

Expand Down

0 comments on commit 4969300

Please sign in to comment.