Skip to content

Commit 62ee511

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

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

0 commit comments

Comments
 (0)