Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Packet takes 24sec to get relayed #1265

Closed
gamarin2 opened this issue Aug 6, 2021 · 1 comment · Fixed by #1278
Closed

Packet takes 24sec to get relayed #1265

gamarin2 opened this issue Aug 6, 2021 · 1 comment · Fixed by #1278
Labels
E: gravity External: related to Gravity DEX I: logic Internal: related to the relaying logic O: new-feature Objective: cause to add a new feature or support
Milestone

Comments

@gamarin2
Copy link

gamarin2 commented Aug 6, 2021

Hermes caught a Sendevent, but took 24 sec to try and relay it. By the time it tried, the packet had already been relayed. Here are the relevant logs:

Aug 06 19:32:33.729 DEBUG [irishub-1:transfer/channel-12 -> cosmoshub-4] irishub-1 => SendPacketEv(SendPacket - h:1-11259223, seq:21, path:channel-12/transfer->channel-182/transfer, toh:0-0, tos:Timestamp(2021-08-06T19:37:03.175+00:00)))
Aug 06 19:32:37.504 DEBUG [cosmoshub-4 -> osmosis-1:07-tendermint-1] client was updated
Aug 06 19:32:57.407 DEBUG [irishub-1:transfer/channel-12 -> cosmoshub-4] SendPacket - h:1-11259223, seq:21, path:channel-12/transfer->channel-182/transfer, toh:0-0, tos:Timestamp(2021-08-06T19:37:03.175+00:00)) already handled

This is not an isolated event, happens very frequently (most packets are delayed actually)

Version: 0.6.2

@adizere adizere added this to the 08.2021 milestone Aug 10, 2021
@adizere adizere added O: new-feature Objective: cause to add a new feature or support E: gravity External: related to Gravity DEX I: logic Internal: related to the relaying logic labels Aug 10, 2021
@adizere
Copy link
Member

adizere commented Aug 10, 2021

Thank you for documenting this issue Gautier!

This is related to #1124, and the underlying cause is that Hermes has a blocking call waiting for each transaction to be confirmed before it can process a subsequent transaction for the same target chain. If rpc_timeout is configured to at least 24s in this case for the chain cosmoshub-4, then Hermes may block up to that time. We're actively looking into it and trying to redo the Hermes <> SDK interaction.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
E: gravity External: related to Gravity DEX I: logic Internal: related to the relaying logic O: new-feature Objective: cause to add a new feature or support
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants