Refactor handling of InvoiceRequest
authorJeffrey Czyz <jkczyz@gmail.com>
Sun, 10 Mar 2024 00:58:01 +0000 (18:58 -0600)
committerJeffrey Czyz <jkczyz@gmail.com>
Mon, 15 Apr 2024 21:11:12 +0000 (16:11 -0500)
commit7e085c5ce4a98e9ba8528810118d7b5c118eb45a
tree2ebec6c25d6054cdc83067ad08e831caae103d36
parent59778dac488cff735004671cdefb3f4ac1f920fd
Refactor handling of InvoiceRequest

In order to generate and InvoiceSent event, it would be cleaner to have
one location where a Bolt12Invoice is successfully generated. Refactor
the handling code to this end and clean-up line length by making some of
the type conversions more streamlined.
lightning/src/ln/channelmanager.rs
lightning/src/offers/invoice_error.rs