diff options
| author | Adam Soltys <[email protected]> | 2020-05-12 00:13:55 -0400 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2020-05-12 00:13:55 -0400 |
| commit | ea58d17b9ccee5b102f75125d16444dbc61b77b2 (patch) | |
| tree | 96156b0b30238300b2e6efcb3770c72f7b69e2f9 /routes/lightning/invoice.js | |
| parent | 2afea831615a76e18f57cb1a87f6733908db410a (diff) | |
| download | coinos-server-ea58d17b9ccee5b102f75125d16444dbc61b77b2.tar.gz coinos-server-ea58d17b9ccee5b102f75125d16444dbc61b77b2.zip | |
use db transaction for lightning receive
Diffstat (limited to 'routes/lightning/invoice.js')
| -rw-r--r-- | routes/lightning/invoice.js | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/routes/lightning/invoice.js b/routes/lightning/invoice.js index 3f4ab1db..3b453a73 100644 --- a/routes/lightning/invoice.js +++ b/routes/lightning/invoice.js @@ -3,17 +3,6 @@ module.exports = async (req, res) => { l.info("adding lightning invoice", req.user.username, amount, tip); - /* - const exists = await db.Invoice.findOne({ - where: { - [Op.or]: { - address: invoice.address || "undefined", - text: invoice.text - } - } - }); - */ - try { if (config.lna.clightning) { const invoice = await lnb.invoice(`${amount + tip}sat` || "any", new Date(), "", 360); |
