Skip to content

Commit aaa1760

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

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
@@ -187,7 +187,7 @@ impl<T: sealed::Context> Features<T> {
187187
pub(crate) fn requires_unknown_bits(&self) -> bool {
188188
self.flags.iter().enumerate().any(|(idx, &byte)| {
189189
(match idx {
190-
0 => (byte & 0b00010100),
190+
0 => (byte & 0b01000100),
191191
1 => (byte & 0b01010100),
192192
_ => (byte & 0b01010101),
193193
}) != 0

0 commit comments

Comments
 (0)