diff options
| author | Adam Soltys <[email protected]> | 2020-04-29 20:59:05 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2020-04-29 21:03:33 -0700 |
| commit | fa84d5a65844602c7e97e9bf0e5a51befdebaf53 (patch) | |
| tree | 3e0335eea275a5de9040eb3cc6dfc62c6e190575 /routes/lightning/receive.js | |
| parent | 001c0291ad6eabe5684138422adfa0e851d507a6 (diff) | |
| download | coinos-server-fa84d5a65844602c7e97e9bf0e5a51befdebaf53.tar.gz coinos-server-fa84d5a65844602c7e97e9bf0e5a51befdebaf53.zip | |
update account balance properly after lightning payment
Diffstat (limited to 'routes/lightning/receive.js')
| -rw-r--r-- | routes/lightning/receive.js | 3 |
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, ); }; |
