Skip to content

Commit

Permalink
Stop retrying after one hour
Browse files Browse the repository at this point in the history
  • Loading branch information
ekzyis committed Feb 13, 2025
1 parent 8fc36ba commit fa26f73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ export const WALLET_CREATE_INVOICE_TIMEOUT_MS = 45_000
// retry-after must be high enough such that intermediate failed invoices that will already
// be retried by the client due to sender or receiver fallbacks are not returned to the client.
export const WALLET_RETRY_AFTER_MS = 60_000 // 1 minute
export const WALLET_RETRY_BEFORE_MS = 86_400_000 // 24 hours
export const WALLET_RETRY_BEFORE_MS = 3_600_000 // 1 hour
// we want to attempt a payment three times so we retry two times
export const WALLET_MAX_RETRIES = 2
// when a pending retry for an invoice should be considered expired and can be attempted again
Expand Down

0 comments on commit fa26f73

Please sign in to comment.