Merge pull request #905 from TheBlueMatt/2021-04-mention-invoice-storage-docs
authorMatt Corallo <649246+TheBlueMatt@users.noreply.github.com>
Thu, 29 Apr 2021 22:26:12 +0000 (22:26 +0000)
committerGitHub <noreply@github.com>
Thu, 29 Apr 2021 22:26:12 +0000 (22:26 +0000)
Mention storage req for users with a public invoice generation API

lightning/src/ln/channelmanager.rs

index 451bf8be4a1cf02a74e4daa189658e59d8e05d98..439c9b93c27af37858a783147dd796f5b6aa7746 100644 (file)
@@ -3467,6 +3467,10 @@ impl<Signer: Sign, M: Deref, T: Deref, K: Deref, F: Deref, L: Deref> ChannelMana
        /// If you need exact expiry semantics, you should enforce them upon receipt of
        /// [`PaymentReceived`].
        ///
+       /// Pending inbound payments are stored in memory and in serialized versions of this
+       /// [`ChannelManager`]. If potentially unbounded numbers of inbound payments may exist and
+       /// space is limited, you may wish to rate-limit inbound payment creation.
+       ///
        /// May panic if `invoice_expiry_delta_secs` is greater than one year.
        ///
        /// Note that invoices generated for inbound payments should have their `min_final_cltv_expiry`