We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c73b56c commit a1954d7Copy full SHA for a1954d7
lightning/src/ln/channel.rs
@@ -8441,6 +8441,13 @@ impl<SP: Deref> FundedChannel<SP> where
8441
return Err(ChannelError::Warn(format!("Splicing requested on a channel that is not Ready")));
8442
}
8443
8444
+ // - If it has received shutdown:
8445
+ // MUST send a warning and close the connection or send an error
8446
+ // and fail the channel.
8447
+ if self.context.channel_state.is_remote_shutdown_sent() {
8448
+ return Err(ChannelError::close("Got splice_init when channel was not in an operational state".to_owned()));
8449
+ }
8450
+
8451
let pre_channel_value = self.funding.get_value_satoshis();
8452
// Sanity check: capacity cannot decrease below 0
8453
if (pre_channel_value as i64)
0 commit comments