From b2bb2deb5dde427a5ab7c1a4fde21145a5678c43 Mon Sep 17 00:00:00 2001 From: Cian Hatton Date: Tue, 8 Nov 2022 12:14:02 +0000 Subject: [PATCH] Removing stale comment (#2685) * chore: removing stale comment * Update modules/apps/27-interchain-accounts/controller/keeper/msg_server.go Co-authored-by: Damian Nolan * chore: fixing indentation Co-authored-by: Damian Nolan Co-authored-by: Carlos Rodriguez --- .../27-interchain-accounts/controller/keeper/msg_server.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/apps/27-interchain-accounts/controller/keeper/msg_server.go b/modules/apps/27-interchain-accounts/controller/keeper/msg_server.go index 56cd8fae372..63a71dfa0ca 100644 --- a/modules/apps/27-interchain-accounts/controller/keeper/msg_server.go +++ b/modules/apps/27-interchain-accounts/controller/keeper/msg_server.go @@ -56,7 +56,8 @@ func (s msgServer) SendTx(goCtx context.Context, msg *types.MsgSendTx) (*types.M return nil, err } - // explicitly passing nil as the argument is discarded as the channel capability is retrieved in SendTx. + // the absolute timeout value is calculated using the controller chain block time + the relative timeout value + // this assumes time synchrony to a certain degree between the controller and counterparty host chain absoluteTimeout := uint64(ctx.BlockTime().UnixNano()) + msg.RelativeTimeout seq, err := s.sendTx(ctx, msg.ConnectionId, portID, msg.PacketData, absoluteTimeout) if err != nil {