@@ -2548,14 +2548,17 @@ pub const MAX_SHORT_LIVED_RELATIVE_EXPIRY: Duration = Duration::from_secs(60 * 6
2548
2548
pub enum RecentPaymentDetails {
2549
2549
/// When an invoice was requested and thus a payment has not yet been sent.
2550
2550
AwaitingInvoice {
2551
- /// A user-provided identifier in [`ChannelManager::send_payment `] used to uniquely identify
2552
- /// a payment and ensure idempotency in LDK.
2551
+ /// A user-provided identifier in [`ChannelManager::pay_for_offer `] used to uniquely identify a
2552
+ /// payment and ensure idempotency in LDK.
2553
2553
payment_id: PaymentId,
2554
2554
},
2555
2555
/// When a payment is still being sent and awaiting successful delivery.
2556
2556
Pending {
2557
- /// A user-provided identifier in [`ChannelManager::send_payment`] used to uniquely identify
2558
- /// a payment and ensure idempotency in LDK.
2557
+ /// A user-provided identifier in [`send_payment`] or [`pay_for_offer`] used to uniquely
2558
+ /// identify a payment and ensure idempotency in LDK.
2559
+ ///
2560
+ /// [`send_payment`]: crate::ln::channelmanager::ChannelManager::send_payment
2561
+ /// [`pay_for_offer`]: crate::ln::channelmanager::ChannelManager::pay_for_offer
2559
2562
payment_id: PaymentId,
2560
2563
/// Hash of the payment that is currently being sent but has yet to be fulfilled or
2561
2564
/// abandoned.
@@ -2568,8 +2571,11 @@ pub enum RecentPaymentDetails {
2568
2571
/// been resolved. Upon receiving [`Event::PaymentSent`], we delay for a few minutes before the
2569
2572
/// payment is removed from tracking.
2570
2573
Fulfilled {
2571
- /// A user-provided identifier in [`ChannelManager::send_payment`] used to uniquely identify
2572
- /// a payment and ensure idempotency in LDK.
2574
+ /// A user-provided identifier in [`send_payment`] or [`pay_for_offer`] used to uniquely
2575
+ /// identify a payment and ensure idempotency in LDK.
2576
+ ///
2577
+ /// [`send_payment`]: crate::ln::channelmanager::ChannelManager::send_payment
2578
+ /// [`pay_for_offer`]: crate::ln::channelmanager::ChannelManager::pay_for_offer
2573
2579
payment_id: PaymentId,
2574
2580
/// Hash of the payment that was claimed. `None` for serializations of [`ChannelManager`]
2575
2581
/// made before LDK version 0.0.104.
@@ -2579,8 +2585,11 @@ pub enum RecentPaymentDetails {
2579
2585
/// abandoned via [`ChannelManager::abandon_payment`], it is marked as abandoned until all
2580
2586
/// pending HTLCs for this payment resolve and an [`Event::PaymentFailed`] is generated.
2581
2587
Abandoned {
2582
- /// A user-provided identifier in [`ChannelManager::send_payment`] used to uniquely identify
2583
- /// a payment and ensure idempotency in LDK.
2588
+ /// A user-provided identifier in [`send_payment`] or [`pay_for_offer`] used to uniquely
2589
+ /// identify a payment and ensure idempotency in LDK.
2590
+ ///
2591
+ /// [`send_payment`]: crate::ln::channelmanager::ChannelManager::send_payment
2592
+ /// [`pay_for_offer`]: crate::ln::channelmanager::ChannelManager::pay_for_offer
2584
2593
payment_id: PaymentId,
2585
2594
/// Hash of the payment that we have given up trying to send.
2586
2595
payment_hash: PaymentHash,
0 commit comments