From 293b6267be8c3999070f247ffeaea58ff526f165 Mon Sep 17 00:00:00 2001 From: jackstar12 <62219658+jackstar12@users.noreply.github.com> Date: Tue, 13 Feb 2024 14:14:09 +0100 Subject: [PATCH] fix: correct invoice expiry for lndrest (#2271) --- lnbits/nodes/lndrest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lnbits/nodes/lndrest.py b/lnbits/nodes/lndrest.py index 71fc91518..e3afb75e4 100644 --- a/lnbits/nodes/lndrest.py +++ b/lnbits/nodes/lndrest.py @@ -369,7 +369,7 @@ class LndRestNode(Node): memo=invoice["memo"], pending=invoice["state"] == "OPEN", paid_at=invoice["settle_date"], - expiry=invoice["creation_date"] + invoice["expiry"], + expiry=int(invoice["creation_date"]) + int(invoice["expiry"]), preimage=_decode_bytes(invoice["r_preimage"]), bolt11=invoice["payment_request"], )