We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7f8bab5 commit a5d577fCopy full SHA for a5d577f
lightning/src/ln/channel.rs
@@ -1096,7 +1096,8 @@ impl<Signer: Sign> Channel<Signer> {
1096
*channel_type != static_remote_key_with_zero_conf_type {
1097
return Err(ChannelError::Close("Channel Type was not understood".to_owned()));
1098
}
1099
- if announced_channel {
+
1100
+ if *channel_type == static_remote_key_with_privacy_type && announced_channel {
1101
return Err(ChannelError::Close("SCID Alias/Privacy Channel Type cannot be set on a public channel".to_owned()));
1102
1103
0 commit comments