mirror of
https://github.com/lnbits/lnbits-legend.git
synced 2025-02-22 06:21:53 +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
|
||||
)
|
||||
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)
|
||||
except Exception:
|
||||
pass
|
||||
|
|
Loading…
Add table
Reference in a new issue