Check error
This commit is contained in:
parent
fa5622e072
commit
737d024777
|
@ -323,8 +323,8 @@ func (app *GaiaApp) ExportAppStateAndValidators() (appState json.RawMessage, val
|
|||
}
|
||||
|
||||
// load a particular height
|
||||
func (app *GaiaApp) LoadHeight(height int64) {
|
||||
app.LoadVersion(height, app.keyMain)
|
||||
func (app *GaiaApp) LoadHeight(height int64) error {
|
||||
return app.LoadVersion(height, app.keyMain)
|
||||
}
|
||||
|
||||
//______________________________________________________________________________________________
|
||||
|
|
|
@ -68,7 +68,10 @@ func exportAppStateAndTMValidators(
|
|||
) (json.RawMessage, []tmtypes.GenesisValidator, error) {
|
||||
gApp := app.NewGaiaApp(logger, db, traceStore)
|
||||
if height != -1 {
|
||||
gApp.LoadHeight(height)
|
||||
err := gApp.LoadHeight(height)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
return gApp.ExportAppStateAndValidators()
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue