From 808e7535d33ffca4c1bf859d8bf0afe134f3e1d7 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Thu, 5 Feb 2026 18:45:08 -0800 Subject: cross-protocol forwarding with race condition fixes Co-Authored-By: Claude Opus 4.6 --- lib/invoices.ts | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/invoices.ts') diff --git a/lib/invoices.ts b/lib/invoices.ts index 2d9d82ad..e461c1a7 100644 --- a/lib/invoices.ts +++ b/lib/invoices.ts @@ -129,6 +129,7 @@ export const generate = async ({ invoice, user }) => { address_type ||= "bech32"; hash = await bc.getNewAddress({ address_type }); text = bip21(hash, invoice); + await db.sAdd("watching", hash); } else if (type === PaymentType.liquid) { address_type ||= "blech32"; hash = await lq.getNewAddress({ address_type }); -- cgit v1.2.3