From 5a552347b012cdebf1b5bc4834d650a1e97bfd3d Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Thu, 8 Sep 2022 17:03:45 -0400 Subject: misc fixes --- routes/lightning/invoice.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'routes/lightning') 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); } -- cgit v1.2.3