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
Workaround lnd sending funding_locked before channel_reestablish
lnd has a long-standing bug where, upon reconnection, if the
channel is not yet confirmed they will not send a
channel_reestablish until the channel locks in. Then, they will
send a funding_locked *before* sending the channel_reestablish
(which is clearly a violation of the BOLT specs). We copy
c-lightning's workaround here and simply store the funding_locked
message until we receive a channel_reestablish.
See-also lightningnetwork/lnd#4006Fixes#963
returnErr(ChannelError::Close("Peer sent funding_locked when we needed a channel_reestablish".to_owned()));
1707
+
self.workaround_lnd_bug_4006 = Some(msg.clone());
1708
+
returnErr(ChannelError::Ignore("Peer sent funding_locked when we needed a channel_reestablish. The peer is likely lnd, see their bug #4006.".to_owned()));
1695
1709
}
1696
1710
1697
1711
let non_shutdown_state = self.channel_state&(!MULTI_STATE_FLAGS);
0 commit comments