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
@@ -5611,16 +5608,9 @@ impl<SP: Deref> Channel<SP> where
5611
5608
return Err(APIError::ChannelUnavailable{err: "Cannot begin shutdown while peer is disconnected or we're waiting on a monitor update, maybe force-close instead?".to_owned()});
5612
5609
}
5613
5610
5614
-
// If we haven't funded the channel yet, we don't need to bother ensuring the shutdown
5615
-
// script is set, we just force-close and call it a day.
5616
-
let mut chan_closed = false;
5617
-
if self.context.channel_state & !STATE_FLAGS < ChannelState::FundingSent as u32 {
5618
-
chan_closed = true;
5619
-
}
5620
-
5621
5611
let update_shutdown_script = match self.context.shutdown_scriptpubkey {
5622
5612
Some(_) => false,
5623
-
None if !chan_closed => {
5613
+
None => {
5624
5614
// use override shutdown script if provided
5625
5615
let shutdown_scriptpubkey = match override_shutdown_script {
5626
5616
Some(script) => script,
@@ -5638,16 +5628,11 @@ impl<SP: Deref> Channel<SP> where
0 commit comments