You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In #7588 , the v2 packet forwarding logic creates a new v2 packet to forward onto the next hop. This transfer may fail if the other side does not support v1. In order to support transfer forwarding across protocol versions, the transfer module v2 must check the channel of the next hop and decide whether to send a IBC v1 packet or IBC v2 packet.
With the aliasing approach, we optimistically create a v2 channel with the same channelID as an existing v1 channel. This is created even if the other side doesn't support IBC v2, thus a packet sent might time out because it is unsupported by the receiving side. Thus we cannot rely on the existence of a v2 channel, to say that the other side supports V2.
Thus, in the v2 transfer module we should do the following:
Check if the v1 channel keeper has a V1 channel stored for the given channel ID
If a v1 channel is stored, then send an IBC v1 packet. Check the channel version and send ics20-v1 or ics20-v2 packet accordingly.
If a v1 channel is not stored, then send an IBC v2 packet with ics20-v2 packet data.
In #7588 , the v2 packet forwarding logic creates a new v2 packet to forward onto the next hop. This transfer may fail if the other side does not support v1. In order to support transfer forwarding across protocol versions, the transfer module v2 must check the channel of the next hop and decide whether to send a IBC v1 packet or IBC v2 packet.
With the aliasing approach, we optimistically create a v2 channel with the same channelID as an existing v1 channel. This is created even if the other side doesn't support IBC v2, thus a packet sent might time out because it is unsupported by the receiving side. Thus we cannot rely on the existence of a v2 channel, to say that the other side supports V2.
Thus, in the v2 transfer module we should do the following:
Blocked by #7588
The text was updated successfully, but these errors were encountered: