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,14 +559,17 @@ 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. At least some of
567
568
/// these features are likely required for peers to talk to us.
568
569
pub fn known_channel_features ( ) -> NodeFeatures {
569
- Self :: known ( ) . clear_gossip_queries ( )
570
+ Self :: known ( )
571
+ . clear_gossip_queries ( )
572
+ . clear_onion_messages ( )
570
573
}
571
574
}
572
575
@@ -800,6 +803,13 @@ impl<T: sealed::InitialRoutingSync> Features<T> {
800
803
}
801
804
}
802
805
806
+ impl < T : sealed:: OnionMessages > Features < T > {
807
+ pub ( crate ) fn clear_onion_messages ( mut self ) -> Self {
808
+ <T as sealed:: OnionMessages >:: clear_bits ( & mut self . flags ) ;
809
+ self
810
+ }
811
+ }
812
+
803
813
impl < T : sealed:: ShutdownAnySegwit > Features < T > {
804
814
#[ cfg( test) ]
805
815
pub ( crate ) fn clear_shutdown_anysegwit ( mut self ) -> Self {
You can’t perform that action at this time.
0 commit comments