Skip to content

Commit f89b7d6

Browse files
Ensure payment_params present when checking is_retryable_now
1 parent f6823c5 commit f89b7d6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lightning/src/ln/outbound_payment.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,9 @@ impl PendingOutboundPayment {
7979
}
8080
fn is_auto_retryable_now(&self) -> bool {
8181
match self {
82-
PendingOutboundPayment::Retryable { retry_strategy: Some(strategy), attempts, .. } => {
82+
PendingOutboundPayment::Retryable {
83+
retry_strategy: Some(strategy), attempts, payment_params: Some(_), ..
84+
} => {
8385
strategy.is_retryable_now(&attempts)
8486
},
8587
_ => false,
@@ -531,7 +533,7 @@ impl OutboundPayments {
531533
}));
532534
break
533535
}
534-
}
536+
} else { debug_assert!(false); }
535537
}
536538
}
537539
core::mem::drop(outbounds);

0 commit comments

Comments
 (0)