mirror of
https://github.com/lnbits/lnbits-legend.git
synced 2025-03-03 17:37:06 +01:00
fix: spark fee when pay_invoice pending.
This commit is contained in:
parent
0c089109b9
commit
436c3dd51a
1 changed files with 3 additions and 1 deletions
|
@ -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"]
|
||||
|
|
Loading…
Add table
Reference in a new issue