Skip to content

Commit

Permalink
add notice for possible iavl fast node migration (#13390)
Browse files Browse the repository at this point in the history
(cherry picked from commit b609105)
  • Loading branch information
adu-crypto authored and mergify[bot] committed Sep 27, 2022
1 parent 95948f6 commit f9bfb7a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions baseapp/baseapp.go
Expand Up @@ -260,6 +260,7 @@ func (app *BaseApp) MountStore(key storetypes.StoreKey, typ storetypes.StoreType
// LoadLatestVersion loads the latest application version. It will panic if
// called more than once on a running BaseApp.
func (app *BaseApp) LoadLatestVersion() error {

err := app.storeLoader(app.cms)
if err != nil {
return fmt.Errorf("failed to load latest version: %w", err)
Expand Down Expand Up @@ -289,6 +290,7 @@ func (app *BaseApp) SnapshotManager() *snapshots.Manager {
// LoadVersion loads the BaseApp application version. It will panic if called
// more than once on a running baseapp.
func (app *BaseApp) LoadVersion(version int64) error {
app.logger.Info("NOTICE: this could take a long time to migrate IAVL store to fastnode if you enable Fast Node.\n")
err := app.cms.LoadVersion(version)
if err != nil {
return fmt.Errorf("failed to load version %d: %w", version, err)
Expand Down

0 comments on commit f9bfb7a

Please sign in to comment.