Skip to content

Commit 147a755

Browse files
committed
Fix ZeroConf feature.
1 parent 5b5b34b commit 147a755

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

lightning/src/ln/features.rs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,9 @@ mod sealed {
217217
// Byte 4
218218
,
219219
// Byte 5
220-
SCIDPrivacy | ZeroConf,
220+
SCIDPrivacy,
221+
// Byte 6
222+
ZeroConf,
221223
],
222224
optional_features: [
223225
// Byte 0
@@ -232,6 +234,8 @@ mod sealed {
232234
,
233235
// Byte 5
234236
,
237+
// Byte 6
238+
,
235239
],
236240
});
237241

@@ -864,8 +868,8 @@ mod tests {
864868
assert!(!InitFeatures::known().requires_wumbo());
865869
assert!(!NodeFeatures::known().requires_wumbo());
866870

867-
assert!(!ChannelTypeFeatures::known().supports_zero_conf());
868-
assert!(!ChannelTypeFeatures::known().requires_zero_conf());
871+
assert!(ChannelTypeFeatures::known().supports_zero_conf());
872+
assert!(ChannelTypeFeatures::known().requires_zero_conf());
869873

870874
let mut init_features = InitFeatures::known();
871875
assert!(init_features.initial_routing_sync());

0 commit comments

Comments
 (0)