Skip to content

Commit

Permalink
refactors the code based on the new core
Browse files Browse the repository at this point in the history
  • Loading branch information
staheri14 committed Sep 20, 2024
1 parent 75a5016 commit 539d4d6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ func New(
packetForwardMiddleware := packetforward.NewIBCMiddleware(
transferStack,
app.PacketForwardKeeper,
0, // retries on timeout
0, // retries on timeout
packetforwardkeeper.DefaultForwardTransferPacketTimeoutTimestamp, // forward timeout
packetforwardkeeper.DefaultRefundTransferPacketTimeoutTimestamp, // refund timeout
)
Expand Down Expand Up @@ -485,8 +485,8 @@ func (app *App) EndBlocker(ctx sdk.Context, req abci.RequestEndBlock) abci.Respo
// as we want to set the timeouts based on the app version
// that will be used in the next block.
v := app.AppVersion()
res.TimeoutCommit = appconsts.GetTimeoutCommit(v)
res.TimeoutPropose = appconsts.GetTimeoutPropose(v)
res.Timeouts.TimeoutCommit = appconsts.GetTimeoutCommit(v)
res.Timeouts.TimeoutPropose = appconsts.GetTimeoutPropose(v)
return res
}

Expand Down Expand Up @@ -542,7 +542,7 @@ func (app *App) Info(req abci.RequestInfo) abci.ResponseInfo {
if resp.AppVersion > 0 && !app.IsSealed() {
app.mountKeysAndInit(resp.AppVersion)
}

resp.Timeouts.TimeoutPropose = appconsts.GetTimeoutPropose(resp.AppVersion)
resp.Timeouts.TimeoutCommit = appconsts.GetTimeoutCommit(resp.AppVersion)

Expand Down

0 comments on commit 539d4d6

Please sign in to comment.