Skip to content

Commit 2cac6f6

Browse files
committed
f update for new fns
1 parent d97845e commit 2cac6f6

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
@@ -2289,15 +2289,15 @@ impl<Signer: Sign, M: Deref, T: Deref, K: Deref, F: Deref, L: Deref> ChannelMana
22892289
/// generating message events for the net layer to claim the payment, if possible. Thus, you
22902290
/// should probably kick the net layer to go send messages if this returns true!
22912291
///
2292-
/// Note that if you did not set an `amount_msat` when calling [`get_payment_secret`] or
2293-
/// [`get_payment_secret_preimage`] you must check that the amount in the `PaymentReceived`
2292+
/// Note that if you did not set an `amount_msat` when calling [`create_inbound_payment`] or
2293+
/// [`create_inbound_payment_for_hash`] you must check that the amount in the `PaymentReceived`
22942294
/// event matches your expectation. If you fail to do so and call this method, you may provide
22952295
/// the sender "proof-of-payment" when they did not fulfill the full expected payment.
22962296
///
22972297
/// May panic if called except in response to a PaymentReceived event.
22982298
///
2299-
/// [`get_payment_secret`]: Self::get_payment_secret
2300-
/// [`get_payment_secret_preimage`]: Self::get_payment_secret_preimage
2299+
/// [`create_inbound_payment`]: Self::create_inbound_payment
2300+
/// [`create_inbound_payment_for_hash`]: Self::create_inbound_payment_for_hash
23012301
pub fn claim_funds(&self, payment_preimage: PaymentPreimage, expected_amount: u64) -> bool {
23022302
let payment_hash = PaymentHash(Sha256::hash(&payment_preimage.0).into_inner());
23032303

0 commit comments

Comments
 (0)