From 658fe739200ef5422bc263036f1eea0c93bf8f77 Mon Sep 17 00:00:00 2001 From: keyan Date: Sat, 29 Jun 2024 10:35:51 -0500 Subject: [PATCH] upgrade compatibility for #1195 --- worker/wallet.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/worker/wallet.js b/worker/wallet.js index 80507d45..e00668b8 100644 --- a/worker/wallet.js +++ b/worker/wallet.js @@ -118,6 +118,11 @@ async function checkInvoice ({ data: { hash }, boss, models, lnd }) { return } + if (dbInv.actionType) { + // this is an action invoice, we don't know how to handle yet + return + } + if (inv.is_confirmed) { // NOTE: confirm invoice prevents double confirmations (idempotent) // ALSO: is_confirmed and is_held are mutually exclusive