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

Reconnect both when a signer attaches and when the RPC becomes available #204

Merged
merged 5 commits into from Jul 11, 2023

Conversation

cdecker
Copy link
Collaborator

@cdecker cdecker commented Jul 10, 2023

We were having issues with nodes not reconnecting some times. We traced the issue to the signer connecting very early on, when the RPC is not available yet, causing the connect() calls yelling into the void.

By refactoring the reconnection logic and calling it both from the RPC watcher and the signer connecting should address that.

We have an issue where the signer connecting earlier than the RPC is
ready will result in the reconnects being lost. So now we trigger both
when a signer first connects and when the RPC becomes available.
This is important so we don't lock up the `openingd` right from the
get go.
@cdecker cdecker requested a review from nepet July 10, 2023 16:40
Copy link
Collaborator

@nepet nepet left a comment

Choose a reason for hiding this comment

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

Seems good to me!
Ack 17c1980

libs/gl-plugin/src/node/mod.rs Outdated Show resolved Hide resolved
@cdecker cdecker merged commit 1cf2cb4 into main Jul 11, 2023
7 checks passed
@cdecker cdecker deleted the 20230710-force-reconnect branch July 11, 2023 11:59
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.

None yet

2 participants