]> git.bitcoin.ninja Git - rust-lightning/commitdiff
Update docs for PaymentFailureReason::RouteNotFound
authorValentine Wallace <vwallace@protonmail.com>
Wed, 11 Sep 2024 17:57:19 +0000 (13:57 -0400)
committerValentine Wallace <vwallace@protonmail.com>
Wed, 30 Oct 2024 20:13:59 +0000 (16:13 -0400)
Since we started using this error in send_payment_for_bolt12_invoice, this
error type is no longer only used on retry but also on initial send.

lightning/src/events/mod.rs

index cd4b140ffeb3bf03341aab8cbb59742c23b75463..3538aa3678070df35ddcc52fd6d16d40ec2d2c83 100644 (file)
@@ -560,11 +560,15 @@ pub enum PaymentFailureReason {
        /// [`PaymentParameters::expiry_time`]: crate::routing::router::PaymentParameters::expiry_time
        /// [`InvoiceRequestExpired`]: Self::InvoiceRequestExpired
        PaymentExpired,
-       /// We failed to find a route while retrying the payment.
+       /// We failed to find a route while sending or retrying the payment.
        ///
        /// Note that this generally indicates that we've exhausted the available set of possible
        /// routes - we tried the payment over a few routes but were not able to find any further
        /// candidate routes beyond those.
+       ///
+       /// Also used for [`BlindedPathCreationFailed`] when downgrading to versions prior to 0.0.124.
+       ///
+       /// [`BlindedPathCreationFailed`]: Self::BlindedPathCreationFailed
        RouteNotFound,
        /// This error should generally never happen. This likely means that there is a problem with
        /// your router.