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

fix: rpc protocol resetting after refresh #1079

Merged
merged 1 commit into from
Oct 17, 2024
Merged

fix: rpc protocol resetting after refresh #1079

merged 1 commit into from
Oct 17, 2024

Conversation

abretonc7s
Copy link
Collaborator

@abretonc7s abretonc7s commented Oct 17, 2024

Explanation

There is a race condition happening when the sdk is using the rpc protocol and restore its connection.

Because the socket layer receives the connection event before the channel config is restored from the storage, we loose the previous storage containing wallet version and rpcprotocol availability.

References

Checklist

  • I've updated the test suite for new or updated code as appropriate
  • I've updated documentation (JSDoc, Markdown, etc.) for new or updated code as appropriate
  • I've highlighted breaking changes using the "BREAKING" category above as appropriate

Copy link
Contributor

@elefantel elefantel left a comment

Choose a reason for hiding this comment

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

LGTM

@abretonc7s
Copy link
Collaborator Author

Merging with failing ci as they are fixed in the next PR

@abretonc7s abretonc7s merged commit bb051c3 into main Oct 17, 2024
59 of 65 checks passed
@abretonc7s abretonc7s deleted the fix/rpcprotocol branch October 17, 2024 13:14
@abretonc7s abretonc7s mentioned this pull request Oct 17, 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