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 worker is spawned on channel ack and confirm events #1991

Closed
romac opened this issue Mar 22, 2022 · 3 comments · Fixed by #1994
Closed

Packet worker is spawned on channel ack and confirm events #1991

romac opened this issue Mar 22, 2022 · 3 comments · Fixed by #1994
Assignees
Labels
A: bug Admin: something isn't working
Milestone

Comments

@romac
Copy link
Member

romac commented Mar 22, 2022

Why do we spawn the packet workers on OpenAckChannel and OpenConfirmChannel events? The following sequences result in different worker set for hermes:

  • hermes start then hermes create channel...
  • hermes create channel... then hermes start

Code is here https://github.com/informalsystems/ibc-rs/blob/1481a16ee077f6708e3f2ce1866f8e90340fdf46/relayer/src/supervisor.rs#L403-L405
and here
https://github.com/informalsystems/ibc-rs/blob/1481a16ee077f6708e3f2ce1866f8e90340fdf46/relayer/src/supervisor.rs#L419-L421

Originally posted by @ancazamfir in #1931 (comment)

@romac
Copy link
Member Author

romac commented Mar 22, 2022

May be related to #1978.

@romac
Copy link
Member Author

romac commented Mar 22, 2022

As far as @ancazamfir and I can tell, this was introduced in the config reload PR (#1117) in order to check for pending packets on channels opened after adding a chain to the config and triggering a config reload.

This code is not needed anymore, and should be removed, especially since it does not honor the packet filter.

@romac
Copy link
Member Author

romac commented Mar 23, 2022

May be related to #1978.

Does not seem to help with that issue: #1977 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A: bug Admin: something isn't working
Projects
No open projects
Status: Closed
Development

Successfully merging a pull request may close this issue.

3 participants