Skip to content

Commit

Permalink
Remove the config warnings from the store loader. (#2095)
Browse files Browse the repository at this point in the history
* Remove the config warnings from the store loader.

* Add changelog entry.
  • Loading branch information
SpicyLemon committed Jul 16, 2024
1 parent 7d6c507 commit 0463463
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 456 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ Ref: https://keepachangelog.com/en/1.0.0/

## [Unreleased]

* nothing
### Improvements

* Remove the warnings about some config settings [2095](https://github.com/provenance-io/provenance/pull/2095).

---

Expand Down
7 changes: 2 additions & 5 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -988,7 +988,7 @@ func New(
// Register upgrade handlers and set the store loader.
// This must be done after the module manager, configurator, and pre-blocker are set,
// but before the baseapp is sealed via LoadLatestVersion() below.
app.registerUpgradeHandlers(appOpts)
app.registerUpgradeHandlers()

if loadLatest {
if err := app.LoadLatestVersion(); err != nil {
Expand Down Expand Up @@ -1045,7 +1045,7 @@ func (app *App) setFeeHandler() {
app.SetFeeHandler(msgFeeHandler)
}

func (app *App) registerUpgradeHandlers(appOpts servertypes.AppOptions) {
func (app *App) registerUpgradeHandlers() {
// Add the upgrade handlers for each release.
InstallCustomUpgradeHandlers(app)

Expand Down Expand Up @@ -1078,9 +1078,6 @@ func (app *App) registerUpgradeHandlers(appOpts servertypes.AppOptions) {
if storeLoader == nil {
storeLoader = baseapp.DefaultStoreLoader
}

// Verify configuration settings
storeLoader = ValidateWrapper(app.Logger(), appOpts, storeLoader)
app.SetStoreLoader(storeLoader)
}

Expand Down
91 changes: 0 additions & 91 deletions app/store_loader.go

This file was deleted.

Loading

0 comments on commit 0463463

Please sign in to comment.