You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Disconnect peers which don't respond to commitment signed after a while #2282
It seems common wisdom in the plebnet crowd is that lnd sometimes just gets stuck and holds onto htlcs and the only way to fix it is disconnect+reconnect to peers. I saw this on two separate channels over the past few days (trying to get debug logs so I can open an lnd issue), including one channel which I ended up force-closing at high fees because the peer hadn't responded to a commitment_signed in days (despite being connected and ping+pong'ing just fine).
Given disconnect+reconnect manages to kick lnd and get it going again, we should probably implement this - if we're in a waiting state for a few blocks and connected, tell the PM to disconnect and let it reconnect eventually.
When we do this, we should also disconnect peers that haven't sent a channel_reestablish after a while if we expect one. I think this may fix some other lnd bugs that I've seen once or twice.
Activity
TheBlueMatt commentedon May 9, 2023
lnd issue at lightningnetwork/lnd#7682
TheBlueMatt commentedon May 12, 2023
When we do this, we should also disconnect peers that haven't sent a channel_reestablish after a while if we expect one. I think this may fix some other lnd bugs that I've seen once or twice.