@@ -53,8 +53,9 @@ pub enum PaymentPurpose {
53
53
/// A payment for a BOLT 11 invoice.
54
54
Bolt11InvoicePayment {
55
55
/// The preimage to the payment_hash, if the payment hash (and secret) were fetched via
56
- /// [`ChannelManager::create_inbound_payment`]. If provided, this can be handed directly to
57
- /// [`ChannelManager::claim_funds`].
56
+ /// [`ChannelManager::create_inbound_payment`]. When handling [`Event::PaymentClaimable`],
57
+ /// this can be passed directly to [`ChannelManager::claim_funds`] to claim the payment. No
58
+ /// action is needed when seen in [`Event::PaymentClaimed`].
58
59
///
59
60
/// [`ChannelManager::create_inbound_payment`]: crate::ln::channelmanager::ChannelManager::create_inbound_payment
60
61
/// [`ChannelManager::claim_funds`]: crate::ln::channelmanager::ChannelManager::claim_funds
@@ -75,8 +76,9 @@ pub enum PaymentPurpose {
75
76
///
76
77
/// [`Offer`]: crate::offers::offer::Offer
77
78
Bolt12OfferPayment {
78
- /// The preimage to the payment hash. If provided, this can be handed directly to
79
- /// [`ChannelManager::claim_funds`].
79
+ /// The preimage to the payment hash. When handling [`Event::PaymentClaimable`], this can be
80
+ /// passed directly to [`ChannelManager::claim_funds`], if provided. No action is needed
81
+ /// when seen in [`Event::PaymentClaimed`].
80
82
///
81
83
/// [`ChannelManager::claim_funds`]: crate::ln::channelmanager::ChannelManager::claim_funds
82
84
payment_preimage : Option < PaymentPreimage > ,
@@ -96,8 +98,9 @@ pub enum PaymentPurpose {
96
98
///
97
99
/// [`Refund`]: crate::offers::refund::Refund
98
100
Bolt12RefundPayment {
99
- /// The preimage to the payment hash. If provided, this can be handed directly to
100
- /// [`ChannelManager::claim_funds`].
101
+ /// The preimage to the payment hash. When handling [`Event::PaymentClaimable`], this can be
102
+ /// passed directly to [`ChannelManager::claim_funds`], if provided. No action is needed
103
+ /// when seen in [`Event::PaymentClaimed`].
101
104
///
102
105
/// [`ChannelManager::claim_funds`]: crate::ln::channelmanager::ChannelManager::claim_funds
103
106
payment_preimage : Option < PaymentPreimage > ,
0 commit comments