Skip to content

Commit

Permalink
Merge pull request #2915 from TheBlueMatt/2024-02-better-rnf-docs
Browse files Browse the repository at this point in the history
Update docs on `PaymentFailureReason::RouteNotFound` to add context
  • Loading branch information
tnull committed Feb 29, 2024
2 parents 337b8de + a647883 commit cfb4391
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lightning/src/events/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -368,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.
Expand Down

0 comments on commit cfb4391

Please sign in to comment.