File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -755,7 +755,7 @@ impl<Signer: Sign> Channel<Signer> {
755
755
// We currently only actually support one channel type, so don't retry with new types
756
756
// on error messages. When we support more we'll need fallback support (assuming we
757
757
// want to support old types).
758
- channel_type : ChannelTypeFeatures :: known ( ) ,
758
+ channel_type : ChannelTypeFeatures :: only_static_remote_key ( ) ,
759
759
} )
760
760
}
761
761
@@ -787,10 +787,10 @@ impl<Signer: Sign> Channel<Signer> {
787
787
// First check the channel type is known, failing before we do anything else if we don't
788
788
// support this channel type.
789
789
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 ( ) {
791
791
return Err ( ChannelError :: Close ( "Channel Type field contained optional bits - this is not allowed" . to_owned ( ) ) ) ;
792
792
}
793
- if channel_type. requires_unknown_bits ( ) {
793
+ if * channel_type != ChannelTypeFeatures :: only_static_remote_key ( ) {
794
794
return Err ( ChannelError :: Close ( "Channel Type was not understood" . to_owned ( ) ) ) ;
795
795
}
796
796
channel_type. clone ( )
You can’t perform that action at this time.
0 commit comments