Fixed payment isn't initiated on lndrest
This commit is contained in:
parent
d1b89bc68a
commit
a61d74deff
1 changed files with 2 additions and 0 deletions
|
|
@ -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"):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue