Skip to content

Commit

Permalink
Allow announced zero conf channels.
Browse files Browse the repository at this point in the history
  • Loading branch information
tnull committed May 31, 2022
1 parent 7f8bab5 commit a5d577f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lightning/src/ln/channel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1096,7 +1096,8 @@ impl<Signer: Sign> Channel<Signer> {
*channel_type != static_remote_key_with_zero_conf_type {
return Err(ChannelError::Close("Channel Type was not understood".to_owned()));
}
if announced_channel {

if *channel_type == static_remote_key_with_privacy_type && announced_channel {
return Err(ChannelError::Close("SCID Alias/Privacy Channel Type cannot be set on a public channel".to_owned()));
}
}
Expand Down

0 comments on commit a5d577f

Please sign in to comment.