Advertise route blinding feature as supported.
authorValentine Wallace <vwallace@protonmail.com>
Thu, 11 Jan 2024 18:47:17 +0000 (13:47 -0500)
committerValentine Wallace <vwallace@protonmail.com>
Tue, 16 Jan 2024 22:46:41 +0000 (17:46 -0500)
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
lightning/src/ln/peer_handler.rs

index fc0948932ac913e3f551f7762f65df4ec4286bf6..34cce867e61d63d21545be7bfbbb61be8b2f3b3b 100644 (file)
@@ -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();
        }
index 6ffffec4dd0bd94febc085ed998051c7090da5eb..003e95645093a14af850d3bfcceb022c01337afe 100644 (file)
@@ -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
        }