@@ -350,8 +350,8 @@ pub enum Event {
350
350
/// [`ChannelManager::create_channel`]: crate::ln::channelmanager::ChannelManager::create_channel
351
351
user_channel_id : u128 ,
352
352
} ,
353
- /// Indicates we've received (an offer of) money! Just gotta dig out that payment preimage and
354
- /// feed it to [`ChannelManager::claim_funds`] to get it... .
353
+ /// Indicates that we've been offered a payment and it needs to be claimed via calling
354
+ /// [`ChannelManager::claim_funds`] with the preimage given in [`PaymentPurpose`] .
355
355
///
356
356
/// Note that if the preimage is not known, you should call
357
357
/// [`ChannelManager::fail_htlc_backwards`] to free up resources for this HTLC and avoid
@@ -364,15 +364,18 @@ pub enum Event {
364
364
/// LDK will not stop an inbound payment from being paid multiple times, so multiple
365
365
/// `PaymentClaimable` events may be generated for the same payment.
366
366
///
367
+ /// # Note
368
+ /// This event used to be called `PaymentReceived` in LDK versions 0.0.112 and earlier.
369
+ ///
367
370
/// [`ChannelManager::claim_funds`]: crate::ln::channelmanager::ChannelManager::claim_funds
368
371
/// [`ChannelManager::fail_htlc_backwards`]: crate::ln::channelmanager::ChannelManager::fail_htlc_backwards
369
372
PaymentClaimable {
370
- /// The node that received the payment.
371
- /// This is useful to identify payments which were received via [phantom node payments ].
373
+ /// The node that will receive the payment after it has been claimed .
374
+ /// This is useful to identify payments received via [phantom nodes ].
372
375
/// This field will always be filled in when the event was generated by LDK versions
373
376
/// 0.0.113 and above.
374
377
///
375
- /// [phantom node payments ]: crate::chain::keysinterface::PhantomKeysManager
378
+ /// [phantom nodes ]: crate::chain::keysinterface::PhantomKeysManager
376
379
receiver_node_id : Option < PublicKey > ,
377
380
/// The hash for which the preimage should be handed to the ChannelManager. Note that LDK will
378
381
/// not stop you from registering duplicate payment hashes for inbound payments.
@@ -403,18 +406,18 @@ pub enum Event {
403
406
/// [`ChannelManager::claim_funds`]: crate::ln::channelmanager::ChannelManager::claim_funds
404
407
PaymentClaimed {
405
408
/// The node that received the payment.
406
- /// This is useful to identify payments which were received via [phantom node payments ].
409
+ /// This is useful to identify payments which were received via [phantom nodes ].
407
410
/// This field will always be filled in when the event was generated by LDK versions
408
411
/// 0.0.113 and above.
409
412
///
410
- /// [phantom node payments ]: crate::chain::keysinterface::PhantomKeysManager
413
+ /// [phantom nodes ]: crate::chain::keysinterface::PhantomKeysManager
411
414
receiver_node_id : Option < PublicKey > ,
412
415
/// The payment hash of the claimed payment. Note that LDK will not stop you from
413
416
/// registering duplicate payment hashes for inbound payments.
414
417
payment_hash : PaymentHash ,
415
418
/// The value, in thousandths of a satoshi, that this payment is for.
416
419
amount_msat : u64 ,
417
- /// The purpose of this claimed payment, i.e. whether the payment was for an invoice or a
420
+ /// The purpose of the claimed payment, i.e. whether the payment was for an invoice or a
418
421
/// spontaneous payment.
419
422
purpose : PaymentPurpose ,
420
423
} ,
0 commit comments