From 19e8d9cabb5da802198e886c14119123171d046c Mon Sep 17 00:00:00 2001 From: Rootul Patel Date: Mon, 21 Oct 2024 14:35:10 -0400 Subject: [PATCH] fix: able to run scripts/single-node.sh --- app/app.go | 16 ++++++++-------- node/go.mod | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/app/app.go b/app/app.go index b98aaf3283..1b6040aeba 100644 --- a/app/app.go +++ b/app/app.go @@ -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 } @@ -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() @@ -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 diff --git a/node/go.mod b/node/go.mod index f52a80ab15..2a42c5961a 100644 --- a/node/go.mod +++ b/node/go.mod @@ -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