diff --git a/lnbits/wallets/lndrest.py b/lnbits/wallets/lndrest.py index b6e22ba3e..2013a3364 100644 --- a/lnbits/wallets/lndrest.py +++ b/lnbits/wallets/lndrest.py @@ -131,6 +131,10 @@ class LndRestWallet(Wallet): # https://api.lightning.community/rest/index.html?python#peersynctype statuses = {"UNKNOWN": None, "IN_FLIGHT": None, "SUCCEEDED": True, "FAILED": False} + # for some reason our checking_ids are in base64 but the payment hashes + # returned here are in hex, lnd is weird + checking_id = base64.b64decode(checking_id).hex() + for p in r.json()["payments"]: if p["payment_hash"] == checking_id: return PaymentStatus(statuses[p["status"]])