From d3d1010360f235d714f52212f80d6a6bae1c6a20 Mon Sep 17 00:00:00 2001 From: callebtc <93376500+callebtc@users.noreply.github.com> Date: Wed, 20 Sep 2023 12:09:48 +0200 Subject: [PATCH] remove LNURL-p description_hash validation (#1951) --- lnbits/core/views/api.py | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/lnbits/core/views/api.py b/lnbits/core/views/api.py index 9c6d9153..56c7ae4d 100644 --- a/lnbits/core/views/api.py +++ b/lnbits/core/views/api.py @@ -399,17 +399,6 @@ async def api_payments_pay_lnurl( ), ) - if invoice.description_hash != data.description_hash: - raise HTTPException( - status_code=HTTPStatus.BAD_REQUEST, - detail=( - ( - f"{domain} returned an invalid invoice. Expected description_hash" - f" == {data.description_hash}, got {invoice.description_hash}." - ), - ), - ) - extra = {} if params.get("successAction"):