From b697fbe78b952aa1a9c3932b7a22d159ba337669 Mon Sep 17 00:00:00 2001 From: Jeffrey Czyz Date: Thu, 18 Jul 2024 10:24:09 -0500 Subject: [PATCH] Add debug_assert!(false) for unreachable code --- lightning/src/ln/outbound_payment.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/lightning/src/ln/outbound_payment.rs b/lightning/src/ln/outbound_payment.rs index e894b4e38..43b636fb7 100644 --- a/lightning/src/ln/outbound_payment.rs +++ b/lightning/src/ln/outbound_payment.rs @@ -1175,6 +1175,7 @@ impl OutboundPayments { }, PendingOutboundPayment::AwaitingInvoice { .. } => { log_error!(logger, "Payment not yet sent"); + debug_assert!(false); return }, PendingOutboundPayment::InvoiceReceived { .. } => { -- 2.39.5