From db38e8f3316a121ba64d7e1c4cfd93b4826d6f4e Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Sun, 8 Oct 2023 00:16:50 -0700 Subject: use invoice id instead of hash --- lib/lightning.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/lightning.js') diff --git a/lib/lightning.js b/lib/lightning.js index 0c5fd75e..1788fd12 100644 --- a/lib/lightning.js +++ b/lib/lightning.js @@ -27,7 +27,8 @@ export async function listenForLightning() { if (!preimage) return; - let invoice = await g(`invoice:${bolt11}`); + let id = await g(`invoice:${bolt11}`); + let invoice = await g(`invoice:${id}`); if (!invoice) return warn("received lightning with no invoice", bolt11); let payment = await g(`payment:${bolt11}`); -- cgit v1.2.3