upgrade compatibility for #1195

This commit is contained in:
keyan 2024-06-29 10:35:51 -05:00
parent 4fc832c7ed
commit 658fe73920
1 changed files with 5 additions and 0 deletions

View File

@ -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