Skip to content

Commit

Permalink
return timouts in the Info call
Browse files Browse the repository at this point in the history
  • Loading branch information
staheri14 committed Sep 20, 2024
1 parent 3158757 commit 75a5016
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 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 @@ -542,8 +542,9 @@ func (app *App) Info(req abci.RequestInfo) abci.ResponseInfo {
if resp.AppVersion > 0 && !app.IsSealed() {
app.mountKeysAndInit(resp.AppVersion)
}
// TODO add tiemouts to the response
resp.Timeouts.TimeoutPropose = appconsts.GetTimeoutPropose()

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

return resp
}
Expand Down

0 comments on commit 75a5016

Please sign in to comment.