@@ -89,11 +89,11 @@ pub enum PaymentPurpose {
89
89
Bolt11InvoicePayment {
90
90
/// The preimage to the payment_hash, if the payment hash (and secret) were fetched via
91
91
/// [`OffersMessageCommons::create_inbound_payment`]. When handling [`Event::PaymentClaimable`],
92
- /// this can be passed directly to [`ChannelManager ::claim_funds`] to claim the payment. No
92
+ /// this can be passed directly to [`OffersMessageCommons ::claim_funds`] to claim the payment. No
93
93
/// action is needed when seen in [`Event::PaymentClaimed`].
94
94
///
95
95
/// [`OffersMessageCommons::create_inbound_payment`]: crate::ln::channelmanager::OffersMessageCommons::create_inbound_payment
96
- /// [`ChannelManager ::claim_funds`]: crate::ln::channelmanager::ChannelManager ::claim_funds
96
+ /// [`OffersMessageCommons ::claim_funds`]: crate::ln::channelmanager::OffersMessageCommons ::claim_funds
97
97
payment_preimage : Option < PaymentPreimage > ,
98
98
/// The "payment secret". This authenticates the sender to the recipient, preventing a
99
99
/// number of deanonymization attacks during the routing process.
@@ -112,10 +112,10 @@ pub enum PaymentPurpose {
112
112
/// [`Offer`]: crate::offers::offer::Offer
113
113
Bolt12OfferPayment {
114
114
/// The preimage to the payment hash. When handling [`Event::PaymentClaimable`], this can be
115
- /// passed directly to [`ChannelManager ::claim_funds`], if provided. No action is needed
115
+ /// passed directly to [`OffersMessageCommons ::claim_funds`], if provided. No action is needed
116
116
/// when seen in [`Event::PaymentClaimed`].
117
117
///
118
- /// [`ChannelManager ::claim_funds`]: crate::ln::channelmanager::ChannelManager ::claim_funds
118
+ /// [`OffersMessageCommons ::claim_funds`]: crate::ln::channelmanager::OffersMessageCommons ::claim_funds
119
119
payment_preimage : Option < PaymentPreimage > ,
120
120
/// The secret used to authenticate the sender to the recipient, preventing a number of
121
121
/// de-anonymization attacks while routing a payment.
@@ -138,10 +138,10 @@ pub enum PaymentPurpose {
138
138
/// [`Refund`]: crate::offers::refund::Refund
139
139
Bolt12RefundPayment {
140
140
/// The preimage to the payment hash. When handling [`Event::PaymentClaimable`], this can be
141
- /// passed directly to [`ChannelManager ::claim_funds`], if provided. No action is needed
141
+ /// passed directly to [`OffersMessageCommons ::claim_funds`], if provided. No action is needed
142
142
/// when seen in [`Event::PaymentClaimed`].
143
143
///
144
- /// [`ChannelManager ::claim_funds`]: crate::ln::channelmanager::ChannelManager ::claim_funds
144
+ /// [`OffersMessageCommons ::claim_funds`]: crate::ln::channelmanager::OffersMessageCommons ::claim_funds
145
145
payment_preimage : Option < PaymentPreimage > ,
146
146
/// The secret used to authenticate the sender to the recipient, preventing a number of
147
147
/// de-anonymization attacks while routing a payment.
@@ -678,7 +678,7 @@ pub enum Event {
678
678
former_temporary_channel_id : ChannelId ,
679
679
} ,
680
680
/// Indicates that we've been offered a payment and it needs to be claimed via calling
681
- /// [`ChannelManager ::claim_funds`] with the preimage given in [`PaymentPurpose`].
681
+ /// [`OffersMessageCommons ::claim_funds`] with the preimage given in [`PaymentPurpose`].
682
682
///
683
683
/// Note that if the preimage is not known, you should call
684
684
/// [`ChannelManager::fail_htlc_backwards`] or [`ChannelManager::fail_htlc_backwards_with_reason`]
@@ -689,9 +689,9 @@ pub enum Event {
689
689
/// [`FailureCode::InvalidOnionPayload`] if you fail to understand and handle the contents, or
690
690
/// [`ChannelManager::claim_funds_with_known_custom_tlvs`] upon successful handling.
691
691
/// If you don't intend to check for custom TLVs, you can simply use
692
- /// [`ChannelManager ::claim_funds`], which will automatically fail back even custom TLVs.
692
+ /// [`OffersMessageCommons ::claim_funds`], which will automatically fail back even custom TLVs.
693
693
///
694
- /// If you fail to call [`ChannelManager ::claim_funds`],
694
+ /// If you fail to call [`OffersMessageCommons ::claim_funds`],
695
695
/// [`ChannelManager::claim_funds_with_known_custom_tlvs`],
696
696
/// [`ChannelManager::fail_htlc_backwards`], or
697
697
/// [`ChannelManager::fail_htlc_backwards_with_reason`] within the HTLC's timeout, the HTLC will
@@ -710,7 +710,7 @@ pub enum Event {
710
710
/// This event will eventually be replayed after failures-to-handle (i.e., the event handler
711
711
/// returning `Err(ReplayEvent ())`) and will be persisted across restarts.
712
712
///
713
- /// [`ChannelManager ::claim_funds`]: crate::ln::channelmanager::ChannelManager ::claim_funds
713
+ /// [`OffersMessageCommons ::claim_funds`]: crate::ln::channelmanager::OffersMessageCommons ::claim_funds
714
714
/// [`ChannelManager::claim_funds_with_known_custom_tlvs`]: crate::ln::channelmanager::ChannelManager::claim_funds_with_known_custom_tlvs
715
715
/// [`FailureCode::InvalidOnionPayload`]: crate::ln::channelmanager::FailureCode::InvalidOnionPayload
716
716
/// [`ChannelManager::fail_htlc_backwards`]: crate::ln::channelmanager::ChannelManager::fail_htlc_backwards
@@ -760,10 +760,10 @@ pub enum Event {
760
760
/// The block height at which this payment will be failed back and will no longer be
761
761
/// eligible for claiming.
762
762
///
763
- /// Prior to this height, a call to [`ChannelManager ::claim_funds`] is guaranteed to
763
+ /// Prior to this height, a call to [`OffersMessageCommons ::claim_funds`] is guaranteed to
764
764
/// succeed, however you should wait for [`Event::PaymentClaimed`] to be sure.
765
765
///
766
- /// [`ChannelManager ::claim_funds`]: crate::ln::channelmanager::ChannelManager ::claim_funds
766
+ /// [`OffersMessageCommons ::claim_funds`]: crate::ln::channelmanager::OffersMessageCommons ::claim_funds
767
767
claim_deadline : Option < u32 > ,
768
768
/// A unique ID describing this payment (derived from the list of HTLCs in the payment).
769
769
///
@@ -776,22 +776,22 @@ pub enum Event {
776
776
} ,
777
777
/// Indicates a payment has been claimed and we've received money!
778
778
///
779
- /// This most likely occurs when [`ChannelManager ::claim_funds`] has been called in response
779
+ /// This most likely occurs when [`OffersMessageCommons ::claim_funds`] has been called in response
780
780
/// to an [`Event::PaymentClaimable`]. However, if we previously crashed during a
781
- /// [`ChannelManager ::claim_funds`] call you may see this event without a corresponding
781
+ /// [`OffersMessageCommons ::claim_funds`] call you may see this event without a corresponding
782
782
/// [`Event::PaymentClaimable`] event.
783
783
///
784
784
/// # Note
785
785
/// LDK will not stop an inbound payment from being paid multiple times, so multiple
786
786
/// `PaymentClaimable` events may be generated for the same payment. If you then call
787
- /// [`ChannelManager ::claim_funds`] twice for the same [`Event::PaymentClaimable`] you may get
787
+ /// [`OffersMessageCommons ::claim_funds`] twice for the same [`Event::PaymentClaimable`] you may get
788
788
/// multiple `PaymentClaimed` events.
789
789
///
790
790
/// # Failure Behavior and Persistence
791
791
/// This event will eventually be replayed after failures-to-handle (i.e., the event handler
792
792
/// returning `Err(ReplayEvent ())`) and will be persisted across restarts.
793
793
///
794
- /// [`ChannelManager ::claim_funds`]: crate::ln::channelmanager::ChannelManager ::claim_funds
794
+ /// [`OffersMessageCommons ::claim_funds`]: crate::ln::channelmanager::OffersMessageCommons ::claim_funds
795
795
PaymentClaimed {
796
796
/// The node that received the payment.
797
797
/// This is useful to identify payments which were received via [phantom nodes].
0 commit comments