File tree 1 file changed +11
-1
lines changed
1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -559,13 +559,16 @@ impl InitFeatures {
559
559
Self :: known ( )
560
560
. clear_initial_routing_sync ( )
561
561
. clear_gossip_queries ( )
562
+ . clear_onion_messages ( )
562
563
}
563
564
}
564
565
565
566
impl NodeFeatures {
566
567
/// Returns the set of known node features that are related to channels.
567
568
pub fn known_channel_features ( ) -> NodeFeatures {
568
- Self :: known ( ) . clear_gossip_queries ( )
569
+ Self :: known ( )
570
+ . clear_gossip_queries ( )
571
+ . clear_onion_messages ( )
569
572
}
570
573
}
571
574
@@ -799,6 +802,13 @@ impl<T: sealed::InitialRoutingSync> Features<T> {
799
802
}
800
803
}
801
804
805
+ impl < T : sealed:: OnionMessages > Features < T > {
806
+ pub ( crate ) fn clear_onion_messages ( mut self ) -> Self {
807
+ <T as sealed:: OnionMessages >:: clear_bits ( & mut self . flags ) ;
808
+ self
809
+ }
810
+ }
811
+
802
812
impl < T : sealed:: ShutdownAnySegwit > Features < T > {
803
813
#[ cfg( test) ]
804
814
pub ( crate ) fn clear_shutdown_anysegwit ( mut self ) -> Self {
You can’t perform that action at this time.
0 commit comments