From cb3c5e56fd02a6d1f6a8c67e1cd51e95f5289af2 Mon Sep 17 00:00:00 2001 From: Nicolas Dorier Date: Mon, 24 Apr 2023 18:15:39 +0900 Subject: [PATCH] Fix: Poll of Lightning Invoice status might fail on LND if LNURL is used (#4910) --- BTCPayServer/BTCPayServer.csproj | 2 +- BTCPayServer/Payments/Lightning/LightningListener.cs | 2 +- btcpayserver.sln | 2 -- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/BTCPayServer/BTCPayServer.csproj b/BTCPayServer/BTCPayServer.csproj index db832f04b..0497e4f99 100644 --- a/BTCPayServer/BTCPayServer.csproj +++ b/BTCPayServer/BTCPayServer.csproj @@ -47,7 +47,7 @@ - + diff --git a/BTCPayServer/Payments/Lightning/LightningListener.cs b/BTCPayServer/Payments/Lightning/LightningListener.cs index 185376987..4977e36ae 100644 --- a/BTCPayServer/Payments/Lightning/LightningListener.cs +++ b/BTCPayServer/Payments/Lightning/LightningListener.cs @@ -221,7 +221,7 @@ namespace BTCPayServer.Payments.Lightning })); leases.Add(_Aggregator.Subscribe(inv => { - if (inv.PaymentMethodId.PaymentType == LNURLPayPaymentType.Instance) + if (inv.PaymentMethodId.PaymentType == LNURLPayPaymentType.Instance && !string.IsNullOrEmpty(inv.InvoiceId)) { _memoryCache.Remove(GetCacheKey(inv.InvoiceId)); _CheckInvoices.Writer.TryWrite(inv.InvoiceId); diff --git a/btcpayserver.sln b/btcpayserver.sln index 3ade6449e..bd36dbdbf 100644 --- a/btcpayserver.sln +++ b/btcpayserver.sln @@ -245,8 +245,6 @@ Global GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection - GlobalSection(NestedProjects) = preSolution - EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {203A3162-BE45-4721-937D-6804E0E1AFF8} EndGlobalSection