Skip to content

Commit 58cc5f0

Browse files
ssbrightdunxen
andauthored
Update lightning-invoice/src/utils.rs
Co-authored-by: dunxen <[email protected]>
1 parent 3622a04 commit 58cc5f0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lightning-invoice/src/utils.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -354,8 +354,9 @@ fn _create_invoice_from_channelmanager_and_duration_since_epoch<M: Deref, T: Der
354354
}
355355

356356
/// See [`create_invoice_from_channelmanager_and_duration_since_epoch`]
357-
///Function that allows to construct invoices with the given payment hash.
358-
///This may be useful if you're building an on-chain swap or integrating with another protocol where the payment hash is fixed outside of lightning.
357+
/// This version allows for providing a custom [`PaymentHash`] for the invoice.
358+
/// This may be useful if you're building an on-chain swap or involving another protocol where
359+
/// the payment hash is also involved outside the scope of lightning.
359360
pub fn create_invoice_from_channelmanager_and_duration_since_epoch_with_payment_hash<M: Deref, T: Deref, K: Deref, F: Deref, L: Deref>(
360361
channelmanager: &ChannelManager<M, T, K, F, L>, keys_manager: K, logger: L,
361362
network: Currency, amt_msat: Option<u64>, description: String, duration_since_epoch: Duration,

0 commit comments

Comments
 (0)