aboutsummaryrefslogtreecommitdiffstats
path: root/routes/lightning/receive.js
diff options
context:
space:
mode:
Diffstat (limited to 'routes/lightning/receive.js')
-rw-r--r--routes/lightning/receive.js3
1 files changed, 2 insertions, 1 deletions
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,
);
};