]> git.bitcoin.ninja Git - rust-lightning/commitdiff
Add debug_assert!(false) for unreachable code
authorJeffrey Czyz <jkczyz@gmail.com>
Thu, 18 Jul 2024 15:24:09 +0000 (10:24 -0500)
committerJeffrey Czyz <jkczyz@gmail.com>
Fri, 19 Jul 2024 13:47:44 +0000 (08:47 -0500)
lightning/src/ln/outbound_payment.rs

index e894b4e3844c252c604e0c2bc9cdcb80ebfffc0f..43b636fb7ffc3a7d5bd7c9f362589fc6ba3df752 100644 (file)
@@ -1175,6 +1175,7 @@ impl OutboundPayments {
                                                },
                                                PendingOutboundPayment::AwaitingInvoice { .. } => {
                                                        log_error!(logger, "Payment not yet sent");
+                                                       debug_assert!(false);
                                                        return
                                                },
                                                PendingOutboundPayment::InvoiceReceived { .. } => {