aboutsummaryrefslogtreecommitdiffstats
path: root/liquidPayments.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2020-03-05 15:26:15 -0800
committerAdam Soltys <[email protected]>2020-03-05 15:26:15 -0800
commit43c2abbe6958a5de995b3cead5179ea3447ffca5 (patch)
treec66eb017cef0c1612974edcfeb4bf154ca45ad4d /liquidPayments.js
parentcf89efeadbcfe0982b3f833a69fb9c0cd7cfb880 (diff)
downloadcoinos-server-43c2abbe6958a5de995b3cead5179ea3447ffca5.tar.gz
coinos-server-43c2abbe6958a5de995b3cead5179ea3447ffca5.zip
additional logging
Diffstat (limited to 'liquidPayments.js')
-rw-r--r--liquidPayments.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/liquidPayments.js b/liquidPayments.js
index 4549ba08..8ed5507a 100644
--- a/liquidPayments.js
+++ b/liquidPayments.js
@@ -86,6 +86,7 @@ module.exports = (app, db, addresses, payments, emit) => {
});
payments.push(blinded.txid);
+ l.info("liquid detected", user.username, value);
emit(user.username, "payment", payment);
}
})
@@ -126,6 +127,7 @@ module.exports = (app, db, addresses, payments, emit) => {
let user = await p.getUser();
user.balance += p.amount;
user.pending -= p.amount;
+ l.info("liquid confirmed", user.username, p.amount);
emit(user.username, "user", user);
await user.save();