@@ -2514,14 +2514,17 @@ pub const MAX_SHORT_LIVED_RELATIVE_EXPIRY: Duration = Duration::from_secs(60 * 6
2514
2514
pub enum RecentPaymentDetails {
2515
2515
/// When an invoice was requested and thus a payment has not yet been sent.
2516
2516
AwaitingInvoice {
2517
- /// A user-provided identifier in [`ChannelManager::send_payment `] used to uniquely identify
2518
- /// a payment and ensure idempotency in LDK.
2517
+ /// A user-provided identifier in [`ChannelManager::pay_for_offer `] used to uniquely identify a
2518
+ /// payment and ensure idempotency in LDK.
2519
2519
payment_id: PaymentId,
2520
2520
},
2521
2521
/// When a payment is still being sent and awaiting successful delivery.
2522
2522
Pending {
2523
- /// A user-provided identifier in [`ChannelManager::send_payment`] used to uniquely identify
2524
- /// a payment and ensure idempotency in LDK.
2523
+ /// A user-provided identifier in [`send_payment`] or [`pay_for_offer`] used to uniquely
2524
+ /// identify a payment and ensure idempotency in LDK.
2525
+ ///
2526
+ /// [`send_payment`]: crate::ln::channelmanager::ChannelManager::send_payment
2527
+ /// [`pay_for_offer`]: crate::ln::channelmanager::ChannelManager::pay_for_offer
2525
2528
payment_id: PaymentId,
2526
2529
/// Hash of the payment that is currently being sent but has yet to be fulfilled or
2527
2530
/// abandoned.
@@ -2534,8 +2537,11 @@ pub enum RecentPaymentDetails {
2534
2537
/// been resolved. Upon receiving [`Event::PaymentSent`], we delay for a few minutes before the
2535
2538
/// payment is removed from tracking.
2536
2539
Fulfilled {
2537
- /// A user-provided identifier in [`ChannelManager::send_payment`] used to uniquely identify
2538
- /// a payment and ensure idempotency in LDK.
2540
+ /// A user-provided identifier in [`send_payment`] or [`pay_for_offer`] used to uniquely
2541
+ /// identify a payment and ensure idempotency in LDK.
2542
+ ///
2543
+ /// [`send_payment`]: crate::ln::channelmanager::ChannelManager::send_payment
2544
+ /// [`pay_for_offer`]: crate::ln::channelmanager::ChannelManager::pay_for_offer
2539
2545
payment_id: PaymentId,
2540
2546
/// Hash of the payment that was claimed. `None` for serializations of [`ChannelManager`]
2541
2547
/// made before LDK version 0.0.104.
@@ -2545,8 +2551,11 @@ pub enum RecentPaymentDetails {
2545
2551
/// abandoned via [`ChannelManager::abandon_payment`], it is marked as abandoned until all
2546
2552
/// pending HTLCs for this payment resolve and an [`Event::PaymentFailed`] is generated.
2547
2553
Abandoned {
2548
- /// A user-provided identifier in [`ChannelManager::send_payment`] used to uniquely identify
2549
- /// a payment and ensure idempotency in LDK.
2554
+ /// A user-provided identifier in [`send_payment`] or [`pay_for_offer`] used to uniquely
2555
+ /// identify a payment and ensure idempotency in LDK.
2556
+ ///
2557
+ /// [`send_payment`]: crate::ln::channelmanager::ChannelManager::send_payment
2558
+ /// [`pay_for_offer`]: crate::ln::channelmanager::ChannelManager::pay_for_offer
2550
2559
payment_id: PaymentId,
2551
2560
/// Hash of the payment that we have given up trying to send.
2552
2561
payment_hash: PaymentHash,
0 commit comments