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
if matches!(self.context.channel_state, ChannelState::ShutdownComplete) {
6172
-
// During async signing, we may need to keep the channel around
6173
-
// even after it's been fully closed, so that we can construct
6174
-
// and sign the final transaction to send back to the peer.
6175
-
// If they send us another closing_signed, we should act as
6176
-
// if the channel has already been fully closed.
6177
-
return Err(ChannelError::Warn(String::from("Remote end sent us a closing_signed after shutdown complete")));
6171
+
if self.is_shutdown_pending_signature() {
6172
+
return Err(ChannelError::Warn(String::from("Remote end sent us a closing_signed while fully shutdown and just waiting on the final closing signature")));
6178
6173
}
6179
6174
if !self.context.channel_state.is_both_sides_shutdown() {
6180
6175
return Err(ChannelError::close("Remote end sent us a closing_signed before both sides provided a shutdown".to_owned()));
@@ -6277,7 +6272,9 @@ impl<SP: Deref> Channel<SP> where
0 commit comments