aboutsummaryrefslogtreecommitdiffstats
path: root/lib/invoices.ts
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-02-05 18:45:08 -0800
committerAdam Soltys <[email protected]>2026-02-06 09:00:22 -0800
commit808e7535d33ffca4c1bf859d8bf0afe134f3e1d7 (patch)
tree87ee9ec7f8e658cf78c33b82f35c991612cbba38 /lib/invoices.ts
parent4e9c0c5198c7884cfd97cb4495f6156632e3124a (diff)
downloadcoinos-server-808e7535d33ffca4c1bf859d8bf0afe134f3e1d7.tar.gz
coinos-server-808e7535d33ffca4c1bf859d8bf0afe134f3e1d7.zip
cross-protocol forwarding with race condition fixes
Co-Authored-By: Claude Opus 4.6 <[email protected]>
Diffstat (limited to 'lib/invoices.ts')
-rw-r--r--lib/invoices.ts1
1 files changed, 1 insertions, 0 deletions
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 });