Skip to content

Commit

Permalink
fix: able to run scripts/single-node.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
rootulp committed Oct 21, 2024
1 parent e628774 commit 19e8d9c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
16 changes: 8 additions & 8 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -439,13 +439,13 @@ func New(
tmos.Exit(err.Error())
}

height := app.LastBlockHeight()
ctx, err := app.CreateQueryContext(height, false)
if err != nil {
panic(err)
}
app.SetAppVersion(ctx, v3)
app.mountKeysAndInit(3)
// height := app.LastBlockHeight()
// ctx, err := app.CreateQueryContext(height, false)
// if err != nil {
// panic(err)
// }
// app.SetAppVersion(ctx, v3)
// app.mountKeysAndInit(3)

return app
}
Expand All @@ -461,6 +461,7 @@ func (app *App) BeginBlocker(ctx sdk.Context, req abci.RequestBeginBlock) abci.R
return app.manager.BeginBlock(ctx, req)
}

// EndBlocker executes application updates at the end of every block.
func (app *App) EndBlocker(ctx sdk.Context, req abci.RequestEndBlock) abci.ResponseEndBlock {
res := app.manager.EndBlock(ctx, req)
currentVersion := app.AppVersion()
Expand All @@ -486,7 +487,6 @@ func (app *App) EndBlocker(ctx sdk.Context, req abci.RequestEndBlock) abci.Respo
app.SignalKeeper.ResetTally(ctx)
}
}
// Question why do we do this every block instead of just during the v2 to v3 upgrade?
res.Timeouts.TimeoutCommit = appconsts.GetTimeoutCommit(currentVersion)
res.Timeouts.TimeoutPropose = appconsts.GetTimeoutPropose(currentVersion)
return res
Expand Down
2 changes: 1 addition & 1 deletion node/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/celestiaorg/celestia-app/node

go 1.22.6
go 1.23.1

require (
github.com/celestiaorg/celestia-app/v2 v2.0.0
Expand Down

0 comments on commit 19e8d9c

Please sign in to comment.