Merge pull request #6580 from reneaaron/fix/remove-lnurl-desc-hash-check

Remove LNURL description hash check
This commit is contained in:
Nicolas Dorier
2025-02-06 19:02:42 +09:00
committed by GitHub

View File

@@ -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}")
});
}