From: Alec Chen Date: Mon, 31 Jul 2023 02:18:43 +0000 (-0500) Subject: Flip keysend feature bit in node features X-Git-Tag: v0.0.117-alpha1~72^2 X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=7ee90a5dc6d96da4743a8285e0522f69132ff297;p=rust-lightning Flip keysend feature bit in node features --- 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