fix: spark fee when pay_invoice pending.

This commit is contained in:
fiatjaf 2022-05-06 20:10:22 -03:00
parent 0c089109b9
commit 436c3dd51a

View file

@ -129,7 +129,9 @@ class SparkWallet(Wallet):
if pay["status"] == "failed":
return PaymentResponse(False, None, 0, None, str(exc))
elif pay["status"] == "pending":
return PaymentResponse(None, payment_hash, 0, None, None)
return PaymentResponse(
None, payment_hash, fee_limit_msat, None, None
)
elif pay["status"] == "complete":
r = pay
r["payment_preimage"] = pay["preimage"]