]> git.bitcoin.ninja Git - ldk-sample/commitdiff
Remove outdated comment on payment secret
authorJeffrey Czyz <jkczyz@gmail.com>
Fri, 11 Jun 2021 20:30:05 +0000 (13:30 -0700)
committerJeffrey Czyz <jkczyz@gmail.com>
Fri, 11 Jun 2021 20:48:34 +0000 (13:48 -0700)
src/cli.rs

index 02713a55ad3e2d1f7eccc98d93db0d393558c412..be6c80cfb0386860325ee285a1a8e67affebbf80 100644 (file)
@@ -608,9 +608,6 @@ fn get_invoice(
                payment_hash,
                PaymentInfo {
                        preimage: None,
-                       // We can't add payment secrets to invoices until we support features in invoices.
-                       // Otherwise lnd errors with "destination hop doesn't understand payment addresses"
-                       // (for context, lnd calls payment secrets "payment addresses").
                        secret: invoice.payment_secret().cloned(),
                        status: HTLCStatus::Pending,
                        amt_msat: MillisatAmount(Some(amt_msat)),