From 934a5349f8bf54eb5d9a36f5574d52254fed82e7 Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Mon, 10 Apr 2023 23:24:01 +0000 Subject: [PATCH] Update and clarify the reasons for HTLCDestination::FailedPayment --- lightning/src/events/mod.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lightning/src/events/mod.rs b/lightning/src/events/mod.rs index 18d292917..4e7919df5 100644 --- a/lightning/src/events/mod.rs +++ b/lightning/src/events/mod.rs @@ -232,8 +232,11 @@ pub enum HTLCDestination { /// /// Some of the reasons may include: /// * HTLC Timeouts - /// * Expected MPP amount has already been reached - /// * Claimable amount does not match expected amount + /// * Excess HTLCs for a payment that we have already fully received, over-paying for the + /// payment, + /// * The counterparty node modified the HTLC in transit, + /// * A probing attack where an intermediary node is trying to detect if we are the ultimate + /// recipient for a payment. FailedPayment { /// The payment hash of the payment we attempted to process. payment_hash: PaymentHash -- 2.39.5