mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-22 14:22:40 +01:00
fix: remove lnurl description hash check
This commit is contained in:
parent
192d339a79
commit
039e613524
1 changed files with 1 additions and 10 deletions
|
@ -782,22 +782,13 @@ namespace BTCPayServer
|
||||||
DescriptionHashOnly = true
|
DescriptionHashOnly = true
|
||||||
};
|
};
|
||||||
invoice = await client.CreateInvoice(param);
|
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)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
return BadRequest(new LNUrlStatusResponse
|
return BadRequest(new LNUrlStatusResponse
|
||||||
{
|
{
|
||||||
Status = "ERROR",
|
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}")
|
string.IsNullOrEmpty(ex.Message) ? "" : $": {ex.Message}")
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue