mirror of
https://github.com/lnbits/lnbits.git
synced 2025-10-04 18:33:10 +02:00
removed currency check
This commit is contained in:
@@ -74,9 +74,6 @@ def xor_decrypt(key, blob):
|
|||||||
s = BytesIO(payload)
|
s = BytesIO(payload)
|
||||||
pin = compact.read_from(s)
|
pin = compact.read_from(s)
|
||||||
# currency
|
# currency
|
||||||
currency = s.read(1)
|
|
||||||
if currency != USD_CENTS:
|
|
||||||
raise RuntimeError("Unsupported currency: %s" % currency)
|
|
||||||
amount_in_cent = compact.read_from(s)
|
amount_in_cent = compact.read_from(s)
|
||||||
if s.read():
|
if s.read():
|
||||||
raise RuntimeError("Unexpected data")
|
raise RuntimeError("Unexpected data")
|
||||||
|
Reference in New Issue
Block a user