diff --git a/lightning/src/ln/features.rs b/lightning/src/ln/features.rs index 34dd2833721..642298f56ed 100644 --- a/lightning/src/ln/features.rs +++ b/lightning/src/ln/features.rs @@ -559,13 +559,16 @@ impl InitFeatures { Self::known() .clear_initial_routing_sync() .clear_gossip_queries() + .clear_onion_messages() } } impl NodeFeatures { /// Returns the set of known node features that are related to channels. pub fn known_channel_features() -> NodeFeatures { - Self::known().clear_gossip_queries() + Self::known() + .clear_gossip_queries() + .clear_onion_messages() } } @@ -799,6 +802,13 @@ impl Features { } } +impl Features { + pub(crate) fn clear_onion_messages(mut self) -> Self { + ::clear_bits(&mut self.flags); + self + } +} + impl Features { #[cfg(test)] pub(crate) fn clear_shutdown_anysegwit(mut self) -> Self {