Skip to content

Commit

Permalink
add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
kingpinXD committed Oct 24, 2024
1 parent c6567d8 commit 98fba58
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/export.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (
func (app *App) ExportAppStateAndValidators(
forZeroHeight bool, jailAllowedAddrs []string, modulesToExport []string,
) (servertypes.ExportedApp, error) {

Check failure on line 19 in app/export.go

View workflow job for this annotation

GitHub Actions / lint

unnecessary leading newline (whitespace)
// as if they could withdraw from the start of the next block

ctx := app.NewContext(true, tmproto.Header{Height: app.LastBlockHeight()})

// We export at last height + 1, because that's the height at which
Expand Down
2 changes: 2 additions & 0 deletions cmd/zetacored/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,8 @@ func (ac appCreator) appExport(
appOpts,
)

// If height is -1, it means we are using the latest height.
// For all other cases, we load the specified height from the Store
if height != -1 {
err := zetaApp.LoadHeight(height)
if err != nil {
Expand Down

0 comments on commit 98fba58

Please sign in to comment.