aboutsummaryrefslogtreecommitdiffstats
path: root/routes
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2024-02-22 17:50:13 +0000
committerAdam Soltys <[email protected]>2024-02-22 17:50:13 +0000
commite295b8d349c1206d270587ac282485777a7d80a5 (patch)
tree61a37c1c19b056d5b1b8c0db7106c59beba4af4b /routes
parent187febfe9d2525d8e9b3436225267f0f0b0d509b (diff)
downloadcoinos-server-e295b8d349c1206d270587ac282485777a7d80a5.tar.gz
coinos-server-e295b8d349c1206d270587ac282485777a7d80a5.zip
don't freeze internal payments
Diffstat (limited to 'routes')
-rw-r--r--routes/payments.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/routes/payments.js b/routes/payments.js
index fd42e07b..9b78e0e8 100644
--- a/routes/payments.js
+++ b/routes/payments.js
@@ -238,6 +238,7 @@ export default {
if (typeof p === "string") p = await g(`payment:${p}`);
if (!p) {
+ console.log("crediting", txid, vout, type);
await credit(address, sats(amount), "", `${txid}:${vout}`, type);
} else if (confirmations >= 1) {
let id = `payment:${txid}:${vout}`;
@@ -303,8 +304,7 @@ export default {
res.send({ txid });
} catch (e) {
- console.log(e);
- warn("payment failed", e.message);
+ warn(user.username, "payment failed", e.message);
res.code(500).send(e.message);
}
},