]> git.bitcoin.ninja Git - rust-lightning/commit
Introduce RetryableInvoiceRequest in AwaitingInvoice
authorshaavan <shaavan.github@gmail.com>
Mon, 10 Jun 2024 11:52:09 +0000 (17:22 +0530)
committershaavan <shaavan.github@gmail.com>
Thu, 12 Sep 2024 13:17:33 +0000 (18:47 +0530)
commit17d80f970f346a23d7581f45f7b9d4a7dc733dc6
treebd11d9ab5304dfb7ea2a511c9e0ab15e607c4ad6
parentdb905e8a8d620b880fb14e5e574d4d733d64cd06
Introduce RetryableInvoiceRequest in AwaitingInvoice

1. To enable the retry of the Invoice Request message, it's necessary
   to store the essential data required to recreate the message.
2. A new struct is introduced to manage this data, ensuring the
   InvoiceRequest message can be reliably recreated for retries.
3. The addition of an `awaiting_invoice` flag allows tracking of
   retryable invoice requests, preventing the need to lock the
   `pending_outbound_payment` mutex.
lightning/src/ln/channelmanager.rs
lightning/src/ln/outbound_payment.rs
lightning/src/offers/invoice_request.rs