From 1e171e660d272df4389fe00819655d5b0b1e6dec Mon Sep 17 00:00:00 2001 From: benarc Date: Tue, 21 Dec 2021 15:53:40 +0000 Subject: [PATCH] removed currency check --- lnbits/extensions/lnurlpos/lnurl.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/lnbits/extensions/lnurlpos/lnurl.py b/lnbits/extensions/lnurlpos/lnurl.py index a2c8e6a6..3ea33784 100644 --- a/lnbits/extensions/lnurlpos/lnurl.py +++ b/lnbits/extensions/lnurlpos/lnurl.py @@ -74,9 +74,6 @@ def xor_decrypt(key, blob): s = BytesIO(payload) pin = compact.read_from(s) # currency - currency = s.read(1) - if currency != USD_CENTS: - raise RuntimeError("Unsupported currency: %s" % currency) amount_in_cent = compact.read_from(s) if s.read(): raise RuntimeError("Unexpected data")