-
Notifications
You must be signed in to change notification settings - Fork 371
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
Allow for optimistic channel handshake #2919
Conversation
What's the best way to test this? |
Sorry I should have mentioned. I start two chains, create clients, connection and channel in INIT state then start the relayer. The config has connection and channel mode enabled. Here are the commands:
Let hermes run for a bit then check the channel and connection states and make sure they are opened. |
@ancazamfir I am happy to take care of this if you want? |
That would be great! I just committed something I had locally if you want to take it from there, or just discard and rewrite. |
I just found that in the case hermes is started before the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fantastic!
Closes: #2910
Description
Assuming channel mode is enabled in the hermes configuration.
For the case where a channel is initialized with a connection that is not opened, the approach in this PR is:
The main changes relative to the current implementation:
hermes create channel ...
)Test Case for 1 that occurs during this sequence (
hermes start
creates workers from events):Test Case for 2 that occurs during this sequence (
hermes start
creates workers from scanned state):Tests:
Notes:
CI fails due to #3006PR author checklist:
unclog
.docs/
).Reviewer checklist:
Files changed
in the GitHub PR explorer.