]> git.bitcoin.ninja Git - rust-lightning/commit
Refactor handling of Bolt12Invoice
authorJeffrey Czyz <jkczyz@gmail.com>
Mon, 11 Mar 2024 22:03:26 +0000 (17:03 -0500)
committerJeffrey Czyz <jkczyz@gmail.com>
Mon, 15 Apr 2024 21:11:13 +0000 (16:11 -0500)
commite239c92cdad88f441367e31b115f3b1bbf5b9c8f
tree7876f4bf280321914c41ede8c555996daabdbd14
parent7e085c5ce4a98e9ba8528810118d7b5c118eb45a
Refactor handling of Bolt12Invoice

In order to provide an InvoiceGenerated event, it would be cleaner to
have one location where a Bolt12Invoice is successfully created.
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