Skip to content

Commit cfb4391

Browse files
authored
Merge pull request #2915 from TheBlueMatt/2024-02-better-rnf-docs
Update docs on `PaymentFailureReason::RouteNotFound` to add context
2 parents 337b8de + a647883 commit cfb4391

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lightning/src/events/mod.rs

+4
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,10 @@ pub enum PaymentFailureReason {
368368
/// [`PaymentParameters::expiry_time`]: crate::routing::router::PaymentParameters::expiry_time
369369
PaymentExpired,
370370
/// We failed to find a route while retrying the payment.
371+
///
372+
/// Note that this generally indicates that we've exhausted the available set of possible
373+
/// routes - we tried the payment over a few routes but were not able to find any further
374+
/// candidate routes beyond those.
371375
RouteNotFound,
372376
/// This error should generally never happen. This likely means that there is a problem with
373377
/// your router.

0 commit comments

Comments
 (0)