Skip to content

Commit

Permalink
Add migration height
Browse files Browse the repository at this point in the history
  • Loading branch information
yzang2019 committed Sep 24, 2024
1 parent cc3e6f1 commit dfd3a4f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion baseapp/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,12 @@ func (app *BaseApp) SetStreamingService(s StreamingService) {
app.abciListeners = append(app.abciListeners, s)
}

// SetQueryMultiStore set a alternative MultiStore implementation to support grpc query service.
// SetQueryMultiStore set a alternative MultiStore implementation to support online migration fallback read.
func (app *BaseApp) SetQueryMultiStore(ms sdk.MultiStore) {
app.qms = ms

Check warning on line 367 in baseapp/options.go

View check run for this annotation

Codecov / codecov/patch

baseapp/options.go#L366-L367

Added lines #L366 - L367 were not covered by tests
}

// SetMigrationHeight set the migration height for online migration so that query below this height will still be served from IAVL.
func (app *BaseApp) SetMigrationHeight(height int64) {
app.migrationHeight = height

Check warning on line 372 in baseapp/options.go

View check run for this annotation

Codecov / codecov/patch

baseapp/options.go#L371-L372

Added lines #L371 - L372 were not covered by tests
}

0 comments on commit dfd3a4f

Please sign in to comment.