Skip to content

Commit 8be723c

Browse files
committed
f rewrite confusing docs
1 parent 8b086ae commit 8be723c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lightning/src/ln/channelmanager.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3942,9 +3942,8 @@ where
39423942
///
39433943
/// This method is guaranteed to ensure the payment has been claimed but only if the current
39443944
/// height is strictly below [`Event::PaymentClaimable::claim_deadline`]. To avoid race
3945-
/// conditions, you should wait for an [`Event::PaymentClaimed`] event which upon a
3946-
/// successful claim will be provided to your [`EventHandler`] when
3947-
/// [`process_pending_events`] is next called.
3945+
/// conditions, you should wait for an [`Event::PaymentClaimed`] before considering the payment
3946+
/// successful. It will generally be available in the next [`process_pending_events`] call.
39483947
///
39493948
/// Note that if you did not set an `amount_msat` when calling [`create_inbound_payment`] or
39503949
/// [`create_inbound_payment_for_hash`] you must check that the amount in the `PaymentClaimable`

0 commit comments

Comments
 (0)