aboutsummaryrefslogtreecommitdiffstats
path: root/lib/lightning.ts
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2025-03-05 17:24:55 +0000
committerAdam Soltys <[email protected]>2025-03-05 17:24:55 +0000
commit1411597923c5de50e804e564387ce51c5991f102 (patch)
treeab1ddc924acf839bbf59c83c9605dda63bb58493 /lib/lightning.ts
parent1b83f8398d34994b62c88fada6dba6a183227cbe (diff)
downloadcoinos-server-1411597923c5de50e804e564387ce51c5991f102.tar.gz
coinos-server-1411597923c5de50e804e564387ce51c5991f102.zip
record payment_hash
Diffstat (limited to 'lib/lightning.ts')
-rw-r--r--lib/lightning.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/lightning.ts b/lib/lightning.ts
index 4d41d9eb..966a7954 100644
--- a/lib/lightning.ts
+++ b/lib/lightning.ts
@@ -14,6 +14,7 @@ export async function listenForLightning() {
bolt12,
description,
pay_index,
+ payment_hash,
amount_received_msat,
payment_preimage: preimage,
} = inv;
@@ -51,6 +52,7 @@ export async function listenForLightning() {
memo: invoice.memo,
ref: preimage,
type: bolt12 ? PaymentType.bolt12 : PaymentType.lightning,
+ payment_hash,
});
} catch (e) {
console.log(e);