Skip to content

Commit b27a6c6

Browse files
committed
Avoid treating option_upfront_shutdown (req) as unknown_required.
This fixes the bitmask in requires_unknown_bits.
1 parent fe8f16c commit b27a6c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lightning/src/ln/features.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ impl<T: sealed::Context> Features<T> {
186186
pub(crate) fn requires_unknown_bits(&self) -> bool {
187187
self.flags.iter().enumerate().any(|(idx, &byte)| {
188188
(match idx {
189-
0 => (byte & 0b00010100),
189+
0 => (byte & 0b01000100),
190190
1 => (byte & 0b01010100),
191191
_ => (byte & 0b01010101),
192192
}) != 0

0 commit comments

Comments
 (0)