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()
}
}
}
}
+impl<T: sealed::OnionMessages> Features<T> {
+ pub(crate) fn clear_onion_messages(mut self) -> Self {
+ <T as sealed::OnionMessages>::clear_bits(&mut self.flags);
+ self
+ }
+}
+
impl<T: sealed::ShutdownAnySegwit> Features<T> {
#[cfg(test)]
pub(crate) fn clear_shutdown_anysegwit(mut self) -> Self {