]> git.bitcoin.ninja Git - rust-lightning/commit
Expose send_payment_for_bolt12_invoice
authorJeffrey Czyz <jkczyz@gmail.com>
Tue, 21 May 2024 23:47:32 +0000 (18:47 -0500)
committerJeffrey Czyz <jkczyz@gmail.com>
Thu, 13 Jun 2024 00:38:22 +0000 (19:38 -0500)
commit65efd92c4a931b3b3622c84c6055bc015152fde0
treeeae6c8aec75b43e8f5d2d302de58022db1d81093
parent232959cd27c3ef8ab84d857cbee434a2a1f8dd10
Expose send_payment_for_bolt12_invoice

UserConfig::manually_handle_bolt12_invoices allows deferring payment of
BOLT12 invoices by generating Event::InvoiceReceived. Expose
ChannelManager::send_payment_for_bolt12_invoice to allow users to pay
the Bolt12Invoice included in the event. While the event contains the
PaymentId for reference, that parameter is now removed from the method
in favor of extracting the PaymentId from the invoice's payer_metadata.
lightning/src/events/mod.rs
lightning/src/ln/channelmanager.rs
lightning/src/ln/outbound_payment.rs
lightning/src/util/config.rs