From 1411597923c5de50e804e564387ce51c5991f102 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Wed, 5 Mar 2025 17:24:55 +0000 Subject: record payment_hash --- lib/lightning.ts | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/lightning.ts') 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); -- cgit v1.2.3