-
Notifications
You must be signed in to change notification settings - Fork 366
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Description: - Add functionality to handle retrying the sending of invoice_request messages on new reply_paths that are still awaiting invoices. Changes: 1. Introduced invoice_request as an optional field in the `PendingOutboundPayments::AwaitingInvoice` variant to accommodate instances without invoice requests. 2. Refactored logic from `pay_for_offer` to create invoice request messages into a separate function for reuse with retry message flow. 3. Implemented `retry_tick_occurred` function in ChannelManager to handle generating invoice request messages for AwaitingInvoice payments and enqueueing them. 4. Added `retry_tick_occurred` to ln_background_processor with a timer duration of 5 seconds for timely retries without overwhelming the system with too many onion_messages.
- Loading branch information
Showing
4 changed files
with
98 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters