mirror of
https://github.com/Routstr/routstr-core.git
synced 2026-10-05 20:28:23 +00:00
When the mint no longer has a Lightning quote (e.g. after TTL purge or restart), check_invoice_payment() was logging an ERROR and returning False. This caused the periodic_invoice_watcher to keep polling the same dead quote every 10s forever, producing infinite log spam. Now _is_quote_not_found() detects 'Mint Error: quote not found (Code: 0)' and returns True, allowing _expire_invoice_if_authoritatively_unpaid() to mark the invoice as expired so the watcher stops polling it. The check is case-insensitive and requires code 0 to avoid false positives from other quote-related errors.