Skip to content

Commit 2d49ff1

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

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
@@ -195,7 +195,7 @@ impl<T: sealed::Context> Features<T> {
195195
pub(crate) fn requires_unknown_bits(&self) -> bool {
196196
self.flags.iter().enumerate().any(|(idx, &byte)| {
197197
(match idx {
198-
0 => (byte & 0b00010100),
198+
0 => (byte & 0b01000100),
199199
1 => (byte & 0b01010100),
200200
_ => (byte & 0b01010101),
201201
}) != 0

0 commit comments

Comments
 (0)