Skip to content

Commit 892de29

Browse files
Ensure payment_params present when checking is_retryable_now
1 parent d025646 commit 892de29

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lightning/src/ln/outbound_payment.rs

+4-2
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,
@@ -524,7 +526,7 @@ impl OutboundPayments {
524526
}));
525527
break
526528
}
527-
}
529+
} else { debug_assert!(false); }
528530
}
529531
}
530532
core::mem::drop(outbounds);

0 commit comments

Comments
 (0)