diff options
| author | Adam Soltys <[email protected]> | 2023-12-28 22:50:56 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2023-12-28 22:51:02 -0800 |
| commit | cb38551cc4ec392911d18dda9b5a9fe97087ad61 (patch) | |
| tree | 939808cef6a568dbe86ed8b2ba6b95fcc2fe9178 /lib/invoices.js | |
| parent | 73a36051979e7257d9198bed976128e8cea5235d (diff) | |
| download | coinos-server-cb38551cc4ec392911d18dda9b5a9fe97087ad61.tar.gz coinos-server-cb38551cc4ec392911d18dda9b5a9fe97087ad61.zip | |
liquid
Diffstat (limited to 'lib/invoices.js')
| -rw-r--r-- | lib/invoices.js | 5 |
1 files changed, 5 insertions, 0 deletions
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); |
