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

Add workaround for lnd sync issue #1563

Merged
merged 2 commits into from
Oct 14, 2020
Merged

Add workaround for lnd sync issue #1563

merged 2 commits into from
Oct 14, 2020

Conversation

t-bast
Copy link
Member

@t-bast t-bast commented Oct 13, 2020

When a channel gets confirmed while nodes are disconnected, recent versions of lnd sometimes fail to send their channel_reestablish message and instead send a funding_locked first (due to a race condition on their side).

When that happens, the channel stays stuck in the SYNCING state.
To avoid that, we trigger a reconnection until the race condition is eventually won by the channel_reestablish.

When a channel gets confirmed while nodes are disconnected, recent lnd
nodes sometimes fail to send their channel_reestablish message and instead
send a funding_locked first (due to a race condition on their side).

When that happened, the channel stayed stuck in the SYNCING state.
To avoid that, we trigger a reconnection until the race condition is eventually
won by the channel_reestablish.
@t-bast t-bast requested a review from pm47 October 14, 2020 09:42
Copy link
Member

@pm47 pm47 left a comment

Choose a reason for hiding this comment

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

Just a nit, otherwise LGTM.

@t-bast t-bast merged commit 131b2e0 into master Oct 14, 2020
@t-bast t-bast deleted the mitigate-lnd-reestablish branch October 14, 2020 11:22
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