Skip to content

Commit 8f1a5db

Browse files
Remove now-redundant abandon_payment in check_retry_payments
pay_internal now internally calls abandon_payment
1 parent cb56754 commit 8f1a5db

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

lightning/src/ln/outbound_payment.rs

+2-6
Original file line numberDiff line numberDiff line change
@@ -533,12 +533,8 @@ impl OutboundPayments {
533533
}
534534
core::mem::drop(outbounds);
535535
if let Some((payment_id, payment_hash, route_params)) = retry_id_route_params {
536-
if let Err(e) = self.pay_internal(payment_id, payment_hash, None, route_params, router, first_hops(), inflight_htlcs(), entropy_source, node_signer, best_block_height, logger, pending_events, &send_payment_along_path) {
537-
log_info!(logger, "Errored retrying payment: {:?}", e);
538-
// If we error on retry, there is no chance of the payment succeeding and no HTLCs have
539-
// been irrevocably committed to, so we can safely abandon.
540-
self.abandon_payment(payment_id, pending_events);
541-
}
536+
let retry_res = self.pay_internal(payment_id, payment_hash, None, route_params, router, first_hops(), inflight_htlcs(), entropy_source, node_signer, best_block_height, logger, pending_events, &send_payment_along_path);
537+
log_info!(logger, "Result retrying payment {}: {:?}", log_bytes!(payment_id.0), retry_res);
542538
} else { break }
543539
}
544540

0 commit comments

Comments
 (0)