Skip to content

Commit 105a6ab

Browse files
committed
f send/handle channel side
1 parent 1539287 commit 105a6ab

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lightning/src/ln/channel.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -755,7 +755,7 @@ impl<Signer: Sign> Channel<Signer> {
755755
// We currently only actually support one channel type, so don't retry with new types
756756
// on error messages. When we support more we'll need fallback support (assuming we
757757
// want to support old types).
758-
channel_type: ChannelTypeFeatures::known(),
758+
channel_type: ChannelTypeFeatures::only_static_remote_key(),
759759
})
760760
}
761761

@@ -787,10 +787,10 @@ impl<Signer: Sign> Channel<Signer> {
787787
// First check the channel type is known, failing before we do anything else if we don't
788788
// support this channel type.
789789
let channel_type = if let Some(channel_type) = &msg.channel_type {
790-
if channel_type.supports_unknown_bits() {
790+
if channel_type.supports_any_optional_bits() {
791791
return Err(ChannelError::Close("Channel Type field contained optional bits - this is not allowed".to_owned()));
792792
}
793-
if channel_type.requires_unknown_bits() {
793+
if *channel_type != ChannelTypeFeatures::only_static_remote_key() {
794794
return Err(ChannelError::Close("Channel Type was not understood".to_owned()));
795795
}
796796
channel_type.clone()

0 commit comments

Comments
 (0)