File tree 1 file changed +5
-1
lines changed
1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -722,13 +722,17 @@ pub enum Event {
722
722
///
723
723
/// This event will only be generated if [`UserConfig::manually_handle_bolt12_invoices`] is set.
724
724
/// Use [`ChannelManager::send_payment_for_bolt12_invoice`] to pay the invoice or
725
- /// [`ChannelManager::abandon_payment`] to abandon the associated payment.
725
+ /// [`ChannelManager::abandon_payment`] to abandon the associated payment. Must be paid before
726
+ /// [`Bolt12Invoice::relative_expiry`] has elapsed since [`Bolt12Invoice::created_at`].
727
+ /// Attempting to pay the invoice after this time will result in an [`Event::PaymentFailed`].
726
728
///
727
729
/// [`InvoiceRequest`]: crate::offers::invoice_request::InvoiceRequest
728
730
/// [`Refund`]: crate::offers::refund::Refund
729
731
/// [`UserConfig::manually_handle_bolt12_invoices`]: crate::util::config::UserConfig::manually_handle_bolt12_invoices
730
732
/// [`ChannelManager::send_payment_for_bolt12_invoice`]: crate::ln::channelmanager::ChannelManager::send_payment_for_bolt12_invoice
731
733
/// [`ChannelManager::abandon_payment`]: crate::ln::channelmanager::ChannelManager::abandon_payment
734
+ /// [`Bolt12Invoice::relative_expiry`]: crate::offers::invoice::Bolt12Invoice::relative_expiry
735
+ /// [`Bolt12Invoice::created_at`]: crate::offers::invoice::Bolt12Invoice::created_at
732
736
InvoiceReceived {
733
737
/// The `payment_id` associated with payment for the invoice.
734
738
payment_id : PaymentId ,
You can’t perform that action at this time.
0 commit comments