From fa84d5a65844602c7e97e9bf0e5a51befdebaf53 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Wed, 29 Apr 2020 20:59:05 -0700 Subject: update account balance properly after lightning payment --- routes/lightning/receive.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'routes/lightning/receive.js') diff --git a/routes/lightning/receive.js b/routes/lightning/receive.js index 403eb999..980d9e01 100644 --- a/routes/lightning/receive.js +++ b/routes/lightning/receive.js @@ -27,6 +27,7 @@ const handlePayment = async msg => { hash, amount, currency, + preimage: msg.r_preimage.toString('hex'), rate, received: true, confirmed: true, @@ -53,7 +54,7 @@ const handlePayment = async msg => { "lightning payment received", user.username, payment.amount, - payment.tip + payment.tip, ); }; -- cgit v1.2.3