Skip to content

Commit b7f1884

Browse files
committed
f send logic
1 parent b63ddfb commit b7f1884

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

lightning/src/ln/channel.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -752,9 +752,9 @@ impl<Signer: Sign> Channel<Signer> {
752752
#[cfg(any(test, feature = "fuzztarget"))]
753753
historical_inbound_htlc_fulfills: HashSet::new(),
754754

755-
// We currently only actually support one channel type, and so send there here with no
756-
// attempts to retry on error messages. When we support more we'll need fallback
757-
// support (assuming we want to support old types).
755+
// We currently only actually support one channel type, so don't retry with new types
756+
// on error messages. When we support more we'll need fallback support (assuming we
757+
// want to support old types).
758758
channel_type: ChannelTypeFeatures::known(),
759759
})
760760
}
@@ -5434,7 +5434,8 @@ impl<'a, Signer: Sign, K: Deref> ReadableArgs<&'a K> for Channel<Signer>
54345434
(11, channel_type, option),
54355435
});
54365436

5437-
if channel_type.as_ref().unwrap().supports_unknown_bits() || channel_type.as_ref().unwrap().requires_unknown_bits() {
5437+
let chan_features = channel_type.as_ref().unwrap();
5438+
if chan_features.supports_unknown_bits() || chan_features.requires_unknown_bits() {
54385439
// If the channel was written by a new version and negotiated with features we don't
54395440
// understand yet, refuse to read it.
54405441
return Err(DecodeError::UnknownRequiredFeature);

0 commit comments

Comments
 (0)