From 7ee90a5dc6d96da4743a8285e0522f69132ff297 Mon Sep 17 00:00:00 2001 From: Alec Chen Date: Sun, 30 Jul 2023 21:18:43 -0500 Subject: [PATCH] Flip keysend feature bit in node features --- lightning/src/ln/channelmanager.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lightning/src/ln/channelmanager.rs b/lightning/src/ln/channelmanager.rs index c7fc70a45..6cd4799ff 100644 --- a/lightning/src/ln/channelmanager.rs +++ b/lightning/src/ln/channelmanager.rs @@ -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 -- 2.39.5