Error if BOLT 11 features are provided for blinded payment params
[rust-lightning] / lightning-invoice / src / payment.rs
index 2fc895aaed599e2070965679114313e2fbf3ab2b..4e7df6807e0b9f96be063a43badd24d2fc33e1e8 100644 (file)
@@ -154,7 +154,7 @@ fn pay_invoice_using_amount<P: Deref>(
                .with_expiry_time(expiry_time_from_unix_epoch(invoice).as_secs())
                .with_route_hints(invoice.route_hints()).unwrap();
        if let Some(features) = invoice.features() {
-               payment_params = payment_params.with_features(features.clone());
+               payment_params = payment_params.with_bolt11_features(features.clone()).unwrap();
        }
        let route_params = RouteParameters {
                payment_params,