bug: cln paymentstate check on error (#2151)
* CLN: paymentstate check on error --------- Co-authored-by: dni ⚡ <office@dnilabs.com>
This commit is contained in:
@@ -162,9 +162,6 @@ class CoreLightningRestWallet(Wallet):
|
||||
|
||||
data = r.json()
|
||||
|
||||
if data["status"] != "complete":
|
||||
return PaymentResponse(False, None, None, None, "payment failed")
|
||||
|
||||
checking_id = data["payment_hash"]
|
||||
preimage = data["payment_preimage"]
|
||||
fee_msat = data["msatoshi_sent"] - data["msatoshi"]
|
||||
|
||||
Reference in New Issue
Block a user