From c2f6dd746000d561750d1e32c05cc814e39a40ce Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Sat, 2 May 2020 15:10:56 -0700 Subject: check amt_paid not value field for lightning payments --- routes/lightning/receive.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/lightning/receive.js b/routes/lightning/receive.js index 980d9e01..286541d2 100644 --- a/routes/lightning/receive.js +++ b/routes/lightning/receive.js @@ -12,7 +12,7 @@ const handlePayment = async msg => { if (!invoice) return; const { text: hash, currency, rate, tip, user_id } = invoice; - const amount = parseInt(msg.value) - tip; + const amount = parseInt(msg.amt_paid_sat) - tip; const account = await db.Account.findOne({ where: { -- cgit v1.2.3