boltz-backend icon indicating copy to clipboard operation
boltz-backend copied to clipboard

Implement internal timeout for invoice payments

Open maybeast opened this issue 7 months ago • 1 comments

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:

  1. Attempt the payment using another available node, or
  2. Mark the swap as invoice.failedToPay

Benefits

  1. Improved node efficiency: Prevents prolonged periods of reduced routing efficiency caused by frequent mission control resets.
  2. Enhanced user experience: Invoices that cannot be paid will fail faster, resulting in quicker refunds for users.

maybeast avatar Jul 12 '24 15:07 maybeast