aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2024-06-04 06:15:29 -0700
committerAdam Soltys <[email protected]>2024-06-04 06:15:29 -0700
commit0b7f6a88d9e7fd3965981b3fb8987f47c3c027b8 (patch)
tree694f7f1b2684dda4cd2b6783ec19db38a17c334c /lib
parent0b887260788ae69fba1dace2f351a23a71862dc2 (diff)
downloadcoinos-server-0b7f6a88d9e7fd3965981b3fb8987f47c3c027b8.tar.gz
coinos-server-0b7f6a88d9e7fd3965981b3fb8987f47c3c027b8.zip
lnurl verify
Diffstat (limited to 'lib')
-rw-r--r--lib/payments.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/payments.js b/lib/payments.js
index 56d048c8..d3250778 100644
--- a/lib/payments.js
+++ b/lib/payments.js
@@ -175,7 +175,10 @@ export let credit = async (hash, amount, memo, ref, type = types.internal) => {
};
if ([types.bitcoin, types.liquid].includes(type)) inv.pending += amount;
- else inv.received += amount;
+ else {
+ inv.received += amount;
+ inv.preimage = ref;
+ }
let balanceKey = "balance";
if ([types.bitcoin, types.liquid].includes(type)) {