-
Notifications
You must be signed in to change notification settings - Fork 385
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
Work around LND bug 6039 #2507
Work around LND bug 6039 #2507
Conversation
LND hasn't properly handled shutdown messages ever, and force-closes any time we send one while HTLCs are still present. The issue is tracked at lightningnetwork/lnd#6039 and has had multiple patches to fix it but none so far have managed to land upstream. The issue appears to be very low priority for the LND team despite being marked "P1". We're not going to bother handling this in a sensible way, instead simply repeated the Shutdown message on repeat until morale improves.
502b6c7
to
bb7c4d1
Compare
Codecov ReportPatch coverage:
❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more. Additional details and impacted files@@ Coverage Diff @@
## main #2507 +/- ##
==========================================
+ Coverage 90.40% 91.07% +0.66%
==========================================
Files 106 106
Lines 56268 63310 +7042
Branches 56268 63310 +7042
==========================================
+ Hits 50868 57657 +6789
- Misses 5400 5653 +253
☔ View full report in Codecov by Sentry. |
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.
I'm not too happy with just continuously re-sending shutdown, but doing anything smarter is likely not worth the complexity. Hopefully they can get this fixed when implementing the new co-op close.
Yea, its an absolutely awful solution, but I really dont want to write more crap just for LND. We might consider also sending a warning message just to say "hey, you're broken, please upgrade", but also didn't bother. I could add that if we want. |
Might be worth it out of generosity, but not a blocker imho. |
Alright, fair, I added a warning message push. |
LND hasn't properly handled shutdown messages ever, and force-closes any time we send one while HTLCs are still present. The issue is tracked at
lightningnetwork/lnd#6039 and has had multiple patches to fix it but none so far have managed to land upstream. The issue appears to be very low priority for the LND team despite being marked "P1".
We're not going to bother handling this in a sensible way, instead simply repeated the Shutdown message on repeat until morale improves.