From cb38551cc4ec392911d18dda9b5a9fe97087ad61 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Thu, 28 Dec 2023 22:50:56 -0800 Subject: liquid --- lib/invoices.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib/invoices.js') diff --git a/lib/invoices.js b/lib/invoices.js index b5718e23..8023bdbb 100644 --- a/lib/invoices.js +++ b/lib/invoices.js @@ -86,6 +86,11 @@ export let generate = async ({ invoice, user, sender, memo }) => { if (!user.username === 'lightningins') l(type, "invoice", user.username, amount); + if (type === "liquid") { + let { unconfidential } = await lq.getAddressInfo(hash); + await s(`invoice:${unconfidential}`, id); + } + await s(`invoice:${hash}`, id); await s(`invoice:${id}`, invoice); await db.lPush(`${user.id}:invoices`, id); -- cgit v1.2.3