From e325598e674022af82ef5f976e9b11f430fb71bf Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Mon, 6 Jan 2020 21:50:55 -0500 Subject: [PATCH] Avoid treating option_upfront_shutdown (req) as unknown_required. This fixes the bitmask in requires_unknown_bits. --- lightning/src/ln/features.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lightning/src/ln/features.rs b/lightning/src/ln/features.rs index dd0b7fa1a..d7e0299e8 100644 --- a/lightning/src/ln/features.rs +++ b/lightning/src/ln/features.rs @@ -187,7 +187,7 @@ impl Features { pub(crate) fn requires_unknown_bits(&self) -> bool { self.flags.iter().enumerate().any(|(idx, &byte)| { (match idx { - 0 => (byte & 0b00010100), + 0 => (byte & 0b01000100), 1 => (byte & 0b01010100), _ => (byte & 0b01010101), }) != 0 -- 2.39.5