Update pay_for_offer docs about unsupported chains
[rust-lightning] / lightning / src / events / mod.rs
index 3bc70014f49aab63105ae94409e94025677ff8ab..485a23e0292e520c28d47a226fe7de51abdd9690 100644 (file)
@@ -184,11 +184,16 @@ pub enum ClosureReason {
        HolderForceClosed,
        /// The channel was closed after negotiating a cooperative close and we've now broadcasted
        /// the cooperative close transaction. Note the shutdown may have been initiated by us.
+       ///
+       /// This was only set in versions of LDK prior to 0.0.122.
        // Can be removed once we disallow downgrading to 0.0.121
        LegacyCooperativeClosure,
        /// The channel was closed after negotiating a cooperative close and we've now broadcasted
        /// the cooperative close transaction. This indicates that the shutdown was initiated by our
        /// counterparty.
+       ///
+       /// In rare cases where we initiated closure immediately prior to shutting down without
+       /// persisting, this value may be provided for channels we initiated closure for.
        CounterpartyInitiatedCooperativeClosure,
        /// The channel was closed after negotiating a cooperative close and we've now broadcasted
        /// the cooperative close transaction. This indicates that the shutdown was initiated by us.
@@ -363,6 +368,10 @@ pub enum PaymentFailureReason {
        /// [`PaymentParameters::expiry_time`]: crate::routing::router::PaymentParameters::expiry_time
        PaymentExpired,
        /// We failed to find a route while 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.
        RouteNotFound,
        /// This error should generally never happen. This likely means that there is a problem with
        /// your router.