Time out incoming HTLCs when we reach cltv_expiry (+ test)
[rust-lightning] / lightning / src / util / events.rs
index 8f34605675c4ee2992a9f045bc8b49d19e9ffd81..ca6355af001e5eb7d05a96a7ffa22548c9340d87 100644 (file)
@@ -55,6 +55,9 @@ pub enum Event {
        /// ChannelManager::fail_htlc_backwards to free up resources for this HTLC.
        /// The amount paid should be considered 'incorrect' when it is less than or more than twice
        /// the amount expected.
+       /// If you fail to call either ChannelManager::claim_funds or
+       /// ChannelManager::fail_htlc_backwards within the HTLC's timeout, the HTLC will be
+       /// automatically failed.
        PaymentReceived {
                /// The hash for which the preimage should be handed to the ChannelManager.
                payment_hash: PaymentHash,