Skip to content

Commit b7c5e47

Browse files
f expand docs
Co-authored-by: dunxen <[email protected]>
1 parent 6c38b9e commit b7c5e47

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lightning-invoice/src/payment.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,9 @@ where
209209
///
210210
/// You should ensure that the [`PaymentPreimage`] is unique and the corresponding
211211
/// [`PaymentHash`] has never been paid before.
212+
///
213+
/// See [`pay_pubkey`] for a variant which uses the [`PaymentHash`] for the
214+
/// idempotency token.
212215
pub fn pay_pubkey_with_id<M: Deref, T: Deref, ES: Deref, NS: Deref, SP: Deref, F: Deref, R: Deref, L: Deref>(
213216
pubkey: PublicKey, payment_preimage: PaymentPreimage, payment_id: PaymentId,
214217
amount_msats: u64, final_cltv_expiry_delta: u32, retry_strategy: Retry,

0 commit comments

Comments
 (0)