bug: cln paymentstate check on error (#2151)

* CLN: paymentstate check on error

---------

Co-authored-by: dni  <office@dnilabs.com>
This commit is contained in:
callebtc
2024-03-12 13:56:36 +01:00
committed by GitHub
co-authored by dni ⚡
parent 7ce4eddb0e
commit 4c0bd132b1
2 changed files with 1 additions and 9 deletions
-3
View File
@@ -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"]