From ccc522aebe7766f17fbaf6bd610ee3b9e9e9fee3 Mon Sep 17 00:00:00 2001 From: sangier <45793271+sangier@users.noreply.github.com> Date: Thu, 7 Nov 2024 17:32:52 +0100 Subject: [PATCH] add timeoutTimestamp in forwarding (#1163) --- spec/app/ics-020-fungible-token-transfer/README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/spec/app/ics-020-fungible-token-transfer/README.md b/spec/app/ics-020-fungible-token-transfer/README.md index 12988ec47..fb5dc8064 100644 --- a/spec/app/ics-020-fungible-token-transfer/README.md +++ b/spec/app/ics-020-fungible-token-transfer/README.md @@ -70,6 +70,7 @@ interface Denom { interface Forwarding { hops: []Hop + timeoutTimestamp: uint64 memo: string } @@ -426,8 +427,10 @@ function onRecvPacket( if len(data.forwarding.hops) > 0 { memo = "" + originalTimeoutTimestamp = data.forwarding.timeoutTimestamp nextForwarding = Forwarding{ hops: data.forwarding.hops[1:] + timeoutTimestamp: originalTimeoutTimestamp // pass the original timestamp value memo: data.forwarding.memo } if len(data.forwarding.hops) == 1 { @@ -456,7 +459,7 @@ function onRecvPacket( packetSequence=handler.sendPacket( forwarding.hops[0].channelId, - currentTime() + DefaultHopTimeoutPeriod, + originalTimeoutTimestamp, forwardingPayload ) // store previous packet sequence and destChannelId for future sending ack