From 039e6135240987b2094334f9f1b1c137c028eabe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Aaron?= Date: Tue, 28 Jan 2025 14:56:00 +0100 Subject: [PATCH] fix: remove lnurl description hash check --- BTCPayServer/Controllers/UILNURLController.cs | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/BTCPayServer/Controllers/UILNURLController.cs b/BTCPayServer/Controllers/UILNURLController.cs index edb042b22..ce4918d98 100644 --- a/BTCPayServer/Controllers/UILNURLController.cs +++ b/BTCPayServer/Controllers/UILNURLController.cs @@ -782,22 +782,13 @@ namespace BTCPayServer DescriptionHashOnly = true }; invoice = await client.CreateInvoice(param); - if (!BOLT11PaymentRequest.Parse(invoice.BOLT11, network.NBitcoinNetwork) - .VerifyDescriptionHash(description)) - { - return BadRequest(new LNUrlStatusResponse - { - Status = "ERROR", - Reason = "Lightning node could not generate invoice with a valid description hash" - }); - } } catch (Exception ex) { return BadRequest(new LNUrlStatusResponse { Status = "ERROR", - Reason = "Lightning node could not generate invoice with description hash" + ( + Reason = "Lightning node could not generate invoice" + ( string.IsNullOrEmpty(ex.Message) ? "" : $": {ex.Message}") }); }