diff --git a/lightning/src/ln/channel.rs b/lightning/src/ln/channel.rs index ced35306b08..d8305d7e3ee 100644 --- a/lightning/src/ln/channel.rs +++ b/lightning/src/ln/channel.rs @@ -305,7 +305,7 @@ macro_rules! define_state_flags { impl core::ops::Not for $flag_type { type Output = Self; - fn not(self) -> Self::Output { Self(!self.0) } + fn not(self) -> Self::Output { Self(!self.0 & Self::ALL.0) } } impl core::ops::BitOr for $flag_type { type Output = Self;