Function create_invoice_from_channelmanager_with_payment_hash

Source
pub fn create_invoice_from_channelmanager_with_payment_hash<M: Deref, T: Deref, ES: Deref, NS: Deref, SP: Deref, F: Deref, R: Deref, MR: Deref, L: Deref>(
    channelmanager: &ChannelManager<M, T, ES, NS, SP, F, R, MR, L>,
    amt_msat: Option<u64>,
    description: String,
    invoice_expiry_delta_secs: u32,
    payment_hash: PaymentHash,
    min_final_cltv_expiry_delta: Option<u16>,
) -> Result<Bolt11Invoice, SignOrCreationError<()>>
👎Deprecated: Use ChannelManager::create_bolt11_invoice instead.
Expand description

See create_invoice_from_channelmanager.

This version allows for providing a custom PaymentHash for the invoice. This may be useful if you’re building an on-chain swap or involving another protocol where the payment hash is also involved outside the scope of lightning.