Function lightning_invoice::utils::create_invoice_from_channelmanager_and_duration_since_epoch
source · pub fn create_invoice_from_channelmanager_and_duration_since_epoch<M: Deref, T: Deref, ES: Deref, NS: Deref, SP: Deref, F: Deref, R: Deref, L: Deref>(
channelmanager: &ChannelManager<M, T, ES, NS, SP, F, R, L>,
node_signer: NS,
logger: L,
network: Currency,
amt_msat: Option<u64>,
description: String,
duration_since_epoch: Duration,
invoice_expiry_delta_secs: u32,
min_final_cltv_expiry_delta: Option<u16>
) -> Result<Bolt11Invoice, SignOrCreationError<()>>where
M::Target: Watch<<SP::Target as SignerProvider>::EcdsaSigner>,
T::Target: BroadcasterInterface,
ES::Target: EntropySource,
NS::Target: NodeSigner,
SP::Target: SignerProvider,
F::Target: FeeEstimator,
R::Target: Router,
L::Target: Logger,
Expand description
See create_invoice_from_channelmanager
This version can be used in a no_std
environment, where std::time::SystemTime
is not
available and the current time is supplied by the caller.