@@ -275,15 +275,14 @@ impl_writeable_tlv_based_enum!(InterceptNextHop,
275
275
pub enum PaymentFailureReason {
276
276
/// The intended recipient rejected our payment.
277
277
RecipientRejected ,
278
- /// The payment failed while being forwarded along the path. A [`Event::PaymentPathFailed`]
279
- /// should have come before this.
280
- FailedAlongPath ,
281
278
/// The user chose to abandon this payment by calling [`ChannelManager::abandon_payment`].
282
279
///
283
280
/// [`ChannelManager::abandon_payment`]: crate::ln::channelmanager::ChannelManager::abandon_payment
284
281
UserAbandoned ,
285
282
/// We exhausted all of our retry attempts while trying to send the payment, or we
286
- /// exhausted the `Retry::Timeout` if the user set one.
283
+ /// exhausted the `Retry::Timeout` if the user set one. If at any point the reason a retry
284
+ /// attempt failed while being forwarded along the path, a [`Event::PaymentPathFailed`] will
285
+ /// have come before this.
287
286
RetriesExhausted ,
288
287
/// The payment expired while retrying. If the user chooses to include an `expiry_time` in their
289
288
/// `PaymentParams` this payment will be failed if it is retried after this time has elapsed.
@@ -297,12 +296,11 @@ pub enum PaymentFailureReason {
297
296
298
297
impl_writeable_tlv_based_enum_upgradable ! ( PaymentFailureReason ,
299
298
( 0 , RecipientRejected ) => { } ,
300
- ( 2 , FailedAlongPath ) => { } ,
301
- ( 4 , UserAbandoned ) => { } ,
302
- ( 6 , RetriesExhausted ) => { } ,
303
- ( 8 , PaymentExpired ) => { } ,
304
- ( 10 , RouteNotFound ) => { } ,
305
- ( 12 , UnexpectedError ) => { } ,
299
+ ( 2 , UserAbandoned ) => { } ,
300
+ ( 4 , RetriesExhausted ) => { } ,
301
+ ( 6 , PaymentExpired ) => { } ,
302
+ ( 8 , RouteNotFound ) => { } ,
303
+ ( 10 , UnexpectedError ) => { } ,
306
304
) ;
307
305
308
306
/// An Event which you should probably take some action in response to.
0 commit comments