mirror of
https://github.com/lnbits/lnbits-legend.git
synced 2025-02-22 14:22:55 +01:00
fix: do not update charge if balance has not changed
This commit is contained in:
parent
25f37b0e4f
commit
e4078504ba
1 changed files with 1 additions and 1 deletions
|
@ -111,7 +111,7 @@ async def check_address_balance(charge_id: str) -> List[Charges]:
|
||||||
+ charge.onchainaddress
|
+ charge.onchainaddress
|
||||||
)
|
)
|
||||||
respAmount = r.json()["chain_stats"]["funded_txo_sum"]
|
respAmount = r.json()["chain_stats"]["funded_txo_sum"]
|
||||||
if respAmount >= charge.balance:
|
if respAmount > charge.balance:
|
||||||
await update_charge(charge_id=charge_id, balance=respAmount)
|
await update_charge(charge_id=charge_id, balance=respAmount)
|
||||||
except Exception:
|
except Exception:
|
||||||
pass
|
pass
|
||||||
|
|
Loading…
Add table
Reference in a new issue