Skip to content

Commit a58bfa6

Browse files
committed
f - Merge FailedAlongPath into RetriesExhausted
1 parent 435ca27 commit a58bfa6

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

lightning/src/events/mod.rs

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -275,15 +275,14 @@ impl_writeable_tlv_based_enum!(InterceptNextHop,
275275
pub enum PaymentFailureReason {
276276
/// The intended recipient rejected our payment.
277277
RecipientRejected,
278-
/// The payment failed while being forwarded along the path. A [`Event::PaymentPathFailed`]
279-
/// should have come before this.
280-
FailedAlongPath,
281278
/// The user chose to abandon this payment by calling [`ChannelManager::abandon_payment`].
282279
///
283280
/// [`ChannelManager::abandon_payment`]: crate::ln::channelmanager::ChannelManager::abandon_payment
284281
UserAbandoned,
285282
/// 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.
287286
RetriesExhausted,
288287
/// The payment expired while retrying. If the user chooses to include an `expiry_time` in their
289288
/// `PaymentParams` this payment will be failed if it is retried after this time has elapsed.
@@ -297,12 +296,11 @@ pub enum PaymentFailureReason {
297296

298297
impl_writeable_tlv_based_enum_upgradable!(PaymentFailureReason,
299298
(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) => {},
306304
);
307305

308306
/// An Event which you should probably take some action in response to.

0 commit comments

Comments
 (0)