From aae39b4090f6b4a62e2deea874be59d9f4c3e217 Mon Sep 17 00:00:00 2001 From: Valentine Wallace Date: Thu, 11 Jan 2024 13:47:17 -0500 Subject: [PATCH] Advertise route blinding feature as supported. Now that we fully support forwarding blinded payments, we should advertise support so nodes on the network can include us in their blinded paths. --- lightning/src/ln/channelmanager.rs | 1 + lightning/src/ln/peer_handler.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/lightning/src/ln/channelmanager.rs b/lightning/src/ln/channelmanager.rs index fc0948932..34cce867e 100644 --- a/lightning/src/ln/channelmanager.rs +++ b/lightning/src/ln/channelmanager.rs @@ -9357,6 +9357,7 @@ pub fn provided_init_features(config: &UserConfig) -> InitFeatures { features.set_channel_type_optional(); features.set_scid_privacy_optional(); features.set_zero_conf_optional(); + features.set_route_blinding_optional(); if config.channel_handshake_config.negotiate_anchors_zero_fee_htlc_tx { features.set_anchors_zero_fee_htlc_tx_optional(); } diff --git a/lightning/src/ln/peer_handler.rs b/lightning/src/ln/peer_handler.rs index 6ffffec4d..003e95645 100644 --- a/lightning/src/ln/peer_handler.rs +++ b/lightning/src/ln/peer_handler.rs @@ -305,6 +305,7 @@ impl ChannelMessageHandler for ErroringMessageHandler { features.set_channel_type_optional(); features.set_scid_privacy_optional(); features.set_zero_conf_optional(); + features.set_route_blinding_optional(); features } -- 2.39.5