Skip to content

Commit 6042754

Browse files
committed
f update for new fns
1 parent c82bcb8 commit 6042754

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lightning/src/ln/channelmanager.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2285,15 +2285,15 @@ impl<Signer: Sign, M: Deref, T: Deref, K: Deref, F: Deref, L: Deref> ChannelMana
22852285
/// generating message events for the net layer to claim the payment, if possible. Thus, you
22862286
/// should probably kick the net layer to go send messages if this returns true!
22872287
///
2288-
/// Note that if you did not set an `amount_msat` when calling [`get_payment_secret`] or
2289-
/// [`get_payment_secret_preimage`] you must check that the amount in the `PaymentReceived`
2288+
/// Note that if you did not set an `amount_msat` when calling [`create_inbound_payment`] or
2289+
/// [`create_inbound_payment_for_hash`] you must check that the amount in the `PaymentReceived`
22902290
/// event matches your expectation. If you fail to do so and call this method, you may provide
22912291
/// the sender "proof-of-payment" when they did not fulfill the full expected payment.
22922292
///
22932293
/// May panic if called except in response to a PaymentReceived event.
22942294
///
2295-
/// [`get_payment_secret`]: Self::get_payment_secret
2296-
/// [`get_payment_secret_preimage`]: Self::get_payment_secret_preimage
2295+
/// [`create_inbound_payment`]: Self::create_inbound_payment
2296+
/// [`create_inbound_payment_for_hash`]: Self::create_inbound_payment_for_hash
22972297
pub fn claim_funds(&self, payment_preimage: PaymentPreimage, expected_amount: u64) -> bool {
22982298
let payment_hash = PaymentHash(Sha256::hash(&payment_preimage.0).into_inner());
22992299

0 commit comments

Comments
 (0)