rust-lightning
rust-lightning copied to clipboard
Allow Asynchronously responding to Invoice Request
Introduce a new event and set of supporting functions to allow flexibility in responding asynchronously to a received invoice request.
This PR provides foundational work for further improvements in future. For example, this allows supporting Offers created in currency denomination, as a user can do appropriate pre-processing for a received InvoiceRequest, before sending an Invoice for it.