diff options
| author | Adam Soltys <[email protected]> | 2020-03-05 15:26:15 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2020-03-05 15:26:15 -0800 |
| commit | 43c2abbe6958a5de995b3cead5179ea3447ffca5 (patch) | |
| tree | c66eb017cef0c1612974edcfeb4bf154ca45ad4d /sendPayment.js | |
| parent | cf89efeadbcfe0982b3f833a69fb9c0cd7cfb880 (diff) | |
| download | coinos-server-43c2abbe6958a5de995b3cead5179ea3447ffca5.tar.gz coinos-server-43c2abbe6958a5de995b3cead5179ea3447ffca5.zip | |
additional logging
Diffstat (limited to 'sendPayment.js')
| -rw-r--r-- | sendPayment.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sendPayment.js b/sendPayment.js index ad92ef52..31e3f602 100644 --- a/sendPayment.js +++ b/sendPayment.js @@ -9,9 +9,8 @@ module.exports = (app, db, emit, seen, lna, lnb) => async (req, res) => { let { route } = req.body; let { user } = req; - l.info("sending lightning", user.username, payreq.satoshis); - if (seen.includes(hash)) { + l.warn("attempted to pay a paid invoice", user.username); return res.status(500).send("Invoice has been paid, can't pay again"); } @@ -70,6 +69,7 @@ module.exports = (app, db, emit, seen, lna, lnb) => async (req, res) => { { transaction } ); + l.info("sent lightning", user.username, -payment.amount); emit(user.username, "payment", payment); emit(user.username, "user", user); |
