Fixed payment isn't initiated on lndrest

This commit is contained in:
Sébastien Krafft 2023-10-30 16:24:23 +01:00 committed by Pavol Rusnak
parent d1b89bc68a
commit a61d74deff

View File

@ -195,6 +195,8 @@ class LndRestWallet(Wallet):
if "message" in line["error"]
else line["error"]
)
if line["error"]["code"] == 5 and line["error"]["message"] == "payment isn't initiated":
return PaymentStatus(False)
return PaymentStatus(None)
payment = line.get("result")
if payment is not None and payment.get("status"):