Flip keysend feature bit in node features
authorAlec Chen <alecchendev@gmail.com>
Mon, 31 Jul 2023 02:18:43 +0000 (21:18 -0500)
committerAlec Chen <alecchendev@gmail.com>
Mon, 31 Jul 2023 02:18:43 +0000 (21:18 -0500)
lightning/src/ln/channelmanager.rs

index c7fc70a4593d66601b7d0d0e2acf8759196e5ffd..6cd4799ff3cf77063e5b313e8a6d6a70631373a7 100644 (file)
@@ -7426,7 +7426,9 @@ where
 /// Fetches the set of [`NodeFeatures`] flags which are provided by or required by
 /// [`ChannelManager`].
 pub(crate) fn provided_node_features(config: &UserConfig) -> NodeFeatures {
-       provided_init_features(config).to_context()
+       let mut node_features = provided_init_features(config).to_context();
+       node_features.set_keysend_optional();
+       node_features
 }
 
 /// Fetches the set of [`Bolt11InvoiceFeatures`] flags which are provided by or required by