When we're unable to process an invoice payment for 10 minutes, we reset LND's mission control. This reduces the node's routing efficiency and is not ideal, especially if it continues for hours.
Proposed Solution
Introduce a configurable internal timeout (X) that would allow the system to either:
Attempt the payment using another available node, or
Mark the swap as invoice.failedToPay
Benefits
Improved node efficiency: Prevents prolonged periods of reduced routing efficiency caused by frequent mission control resets.
Enhanced user experience: Invoices that cannot be paid will fail faster, resulting in quicker refunds for users.
Current Situation
When we're unable to process an invoice payment for 10 minutes, we reset LND's mission control. This reduces the node's routing efficiency and is not ideal, especially if it continues for hours.
Proposed Solution
Introduce a configurable internal timeout (X) that would allow the system to either:
invoice.failedToPay
Benefits