diff options
| author | Adam Soltys <[email protected]> | 2025-03-05 17:24:55 +0000 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2025-03-05 17:24:55 +0000 |
| commit | 1411597923c5de50e804e564387ce51c5991f102 (patch) | |
| tree | ab1ddc924acf839bbf59c83c9605dda63bb58493 /lib/lightning.ts | |
| parent | 1b83f8398d34994b62c88fada6dba6a183227cbe (diff) | |
| download | coinos-server-1411597923c5de50e804e564387ce51c5991f102.tar.gz coinos-server-1411597923c5de50e804e564387ce51c5991f102.zip | |
record payment_hash
Diffstat (limited to 'lib/lightning.ts')
| -rw-r--r-- | lib/lightning.ts | 2 |
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); |
