Skip to content

Conversation

mmsqe
Copy link
Contributor

@mmsqe mmsqe commented May 1, 2024

relay packet message happens right before new channel get created, for more info:

2024-05-01T01:36:49.868214Z info Successfully created new channel {"chain_name": "cronos_777-1", "chain_id": "cronos_777-1", "channel_id": "channel-2", "connection_id": "connection-0", "port_id": "icacontroller-crc1q04jewhxw4xxu3vlg3rc85240h9q7ns6hglz0g"}

2024-05-01T01:36:52.722142Z info Successful transaction {"provider_type": "cosmos", "chain_id": "chainmain-1", "gas_used": 161557, "fees": "196281000000basecro", "fee_payer": "cro1u08u5dvtnpmlpdq333uj9tcj75yceggszxpnsy", "height": 57, "msg_types": ["/ibc.core.client.v1.MsgUpdateClient", "/ibc.core.channel.v1.MsgChannelOpenConfirm"], "tx_hash": "46663D951CA2738EC796451679400C351D93AD3B73F22778654CA5301EA39F09"}

2024-05-01T01:36:52.869073Z warn Refusing to relay packet message because channel is not open {"path_name": "chainmain-cronos", "chain_id": "chainmain-1", "client_id": "07-tendermint-0", "event_type": "recv_packet", "sequence": 1, "channel_id": "channel-2", "port_id": "icahost", "counterparty_channel_id": "channel-2", "counterparty_port_id": "icacontroller-crc1q04jewhxw4xxu3vlg3rc85240h9q7ns6hglz0g"}

2024-05-01T01:36:52.869222Z info Successfully created new channel {"chain_name": "chainmain-1", "chain_id": "chainmain-1", "channel_id": "channel-2", "connection_id": "connection-0", "port_id": "icahost"}

@mmsqe mmsqe changed the title fix: avoid packet message get removed before open channel fix: avoid counterparty recv packet message get removed before open channel May 1, 2024
@mmsqe mmsqe marked this pull request as ready for review May 1, 2024 15:07
@mmsqe mmsqe requested review from jtieri and agouin as code owners May 1, 2024 15:07
Copy link
Contributor

@jtieri jtieri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch!

is the max retry being set to 1 enough to always ensure the packet gets relayed? in the logs you posted it looks like that is the case since the relayer attempted to relay the packet right after the MsgChannelOpenConfirm.

@mmsqe
Copy link
Contributor Author

mmsqe commented May 7, 2024

good catch!

is the max retry being set to 1 enough to always ensure the packet gets relayed? in the logs you posted it looks like that is the case since the relayer attempted to relay the packet right after the MsgChannelOpenConfirm.

Yes, retry once would be good enough for this edge case.

@jtieri jtieri merged commit 14b1266 into cosmos:main May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants