diff options
| author | Adam Soltys <[email protected]> | 2022-09-08 14:07:44 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2022-09-08 14:07:44 -0700 |
| commit | b6ab27a8749785395c42257b02f5cc13fb89b537 (patch) | |
| tree | d2da617b0743be7952a8ad9cd40e62b212bd850e /routes/lightning | |
| parent | 81774e762cc22b0c61f5a2062cf24aa91cbdc005 (diff) | |
| parent | 5a552347b012cdebf1b5bc4834d650a1e97bfd3d (diff) | |
| download | coinos-server-b6ab27a8749785395c42257b02f5cc13fb89b537.tar.gz coinos-server-b6ab27a8749785395c42257b02f5cc13fb89b537.zip | |
Merge remote-tracking branch 'origin/prod'
Diffstat (limited to 'routes/lightning')
| -rw-r--r-- | routes/lightning/invoice.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/routes/lightning/invoice.js b/routes/lightning/invoice.js index 05ec7e09..3ef0e109 100644 --- a/routes/lightning/invoice.js +++ b/routes/lightning/invoice.js @@ -8,6 +8,7 @@ export default async (req, res) => { if (!tip) tip = 0; let value = amount + tip; + console.log("getting invoice"); try { if (config.lna.clightning) { if (!memo) memo = "coinos"; @@ -19,14 +20,17 @@ export default async (req, res) => { ); res.send({ text: invoice.bolt11 }); } else { + console.log("creating invoice"); const invoice = await createInvoice({ lnd, tokens: value, description: memo }); + console.log("created"); res.send({ text: invoice.request }); } } catch (e) { + console.log(e) err("problem creating invoice", e.message); res.code(500).send(e.message); } |
