Skip to content

Commit a5d577f

Browse files
committed
Allow announced zero conf channels.
1 parent 7f8bab5 commit a5d577f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lightning/src/ln/channel.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -1096,7 +1096,8 @@ impl<Signer: Sign> Channel<Signer> {
10961096
*channel_type != static_remote_key_with_zero_conf_type {
10971097
return Err(ChannelError::Close("Channel Type was not understood".to_owned()));
10981098
}
1099-
if announced_channel {
1099+
1100+
if *channel_type == static_remote_key_with_privacy_type && announced_channel {
11001101
return Err(ChannelError::Close("SCID Alias/Privacy Channel Type cannot be set on a public channel".to_owned()));
11011102
}
11021103
}

0 commit comments

Comments
 (0)