aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/payments.js5
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;
}