diff options
| author | Adam Soltys <[email protected]> | 2024-02-12 05:18:44 +0000 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2024-02-12 05:18:44 +0000 |
| commit | 80fb493092de48dcfd9358c1e5cc6752665dc5ad (patch) | |
| tree | ef3c5e1d06bcc336a20348d6bb991de23a4dab7f | |
| parent | 013575bf514933c8ceb142146c3bc841d45a03bc (diff) | |
| download | coinos-server-80fb493092de48dcfd9358c1e5cc6752665dc5ad.tar.gz coinos-server-80fb493092de48dcfd9358c1e5cc6752665dc5ad.zip | |
quiet logs
| -rw-r--r-- | lib/payments.js | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/lib/payments.js b/lib/payments.js index 85fa4216..6c98c15e 100644 --- a/lib/payments.js +++ b/lib/payments.js @@ -437,13 +437,9 @@ export let sendLightning = async ({ user, pr, amount, maxfee, memo }) => { let ourfee = p.ourfee || 0; let credit = Math.round(total * config.fee) - ourfee; - warn("crediting balance", total + maxfee + ourfee); await db.incrBy(`balance:${p.uid}`, total + maxfee + ourfee); - warn("crediting credits", credit); await db.incrBy(`credit:${types.lightning}:${p.uid}`, credit); - - warn("reversing payment", p.id); await db.lRem(`${p.uid}:payments`, 1, p.id); clearInterval(interval); @@ -479,7 +475,6 @@ export let sendLightning = async ({ user, pr, amount, maxfee, memo }) => { l("refunding fee", maxfee, p.fee, maxfee - p.fee, p.ref); await db.incrBy(`balance:${p.uid}`, maxfee - p.fee); } catch (e) { - warn("something went wrong", e.message); await check(); throw e; } |
