Skip to content

Commit 4fbb056

Browse files
committed
f - UnexpectedError on 0-length path in route
1 parent 6d207ab commit 4fbb056

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lightning/src/ln/outbound_payment.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -653,7 +653,7 @@ impl OutboundPayments {
653653
for path in route.paths.iter() {
654654
if path.len() == 0 {
655655
log_error!(logger, "length-0 path in route");
656-
self.abandon_payment(payment_id, PaymentFailureReason::RouteNotFound, pending_events);
656+
self.abandon_payment(payment_id, PaymentFailureReason::UnexpectedError, pending_events);
657657
return
658658
}
659659
}

0 commit comments

Comments
 (0)