Mention storage req for users with a public invoice generation API 2021-04-mention-invoice-storage-docs
authorMatt Corallo <git@bluematt.me>
Thu, 29 Apr 2021 19:31:35 +0000 (19:31 +0000)
committerMatt Corallo <git@bluematt.me>
Thu, 29 Apr 2021 22:02:48 +0000 (22:02 +0000)
lightning/src/ln/channelmanager.rs

index 31529343d56d22b646ab37c44f0f3639be7d2dec..58b6982c42a94331578f7cd61d967e9830ce13d5 100644 (file)
@@ -3468,6 +3468,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`