Skip to content

Commit 3443e5e

Browse files
committed
f - debug_assert!(false);
1 parent 0a1ed9b commit 3443e5e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lightning/src/ln/outbound_payment.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,10 @@ impl PendingOutboundPayment {
153153
PendingOutboundPayment::Retryable { session_privs, .. } |
154154
PendingOutboundPayment::Fulfilled { session_privs, .. } |
155155
PendingOutboundPayment::Abandoned { session_privs, .. } => session_privs,
156-
PendingOutboundPayment::AwaitingInvoice { .. } => return,
156+
PendingOutboundPayment::AwaitingInvoice { .. } => {
157+
debug_assert!(false);
158+
return;
159+
},
157160
});
158161
let payment_hash = self.payment_hash();
159162
*self = PendingOutboundPayment::Fulfilled { session_privs, payment_hash, timer_ticks_without_htlcs: 0 };

0 commit comments

Comments
 (0)