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 614c5db commit 3245114Copy full SHA for 3245114
lightning/src/ln/channel.rs
@@ -8190,6 +8190,13 @@ impl<SP: Deref> FundedChannel<SP> where
8190
return Err(ChannelError::Warn(format!("Splicing requested on a channel that is not Ready")));
8191
}
8192
8193
+ // - If it has received shutdown:
8194
+ // MUST send a warning and close the connection or send an error
8195
+ // and fail the channel.
8196
+ if self.context.channel_state.is_remote_shutdown_sent() {
8197
+ return Err(ChannelError::close("Got splice_init when channel was not in an operational state".to_owned()));
8198
+ }
8199
+
8200
let pre_channel_value = self.context.get_value_satoshis();
8201
// Sanity check: capacity cannot decrease below 0
8202
if (pre_channel_value as i64)
0 commit comments