mirror of
https://github.com/lnbits/lnbits.git
synced 2025-10-10 20:42:32 +02:00
core: code format
This commit is contained in:
@@ -105,7 +105,9 @@ async def check_address_balance(charge_id: str) -> List[Charges]:
|
|||||||
try:
|
try:
|
||||||
async with httpx.AsyncClient() as client:
|
async with httpx.AsyncClient() as client:
|
||||||
r = await client.get(
|
r = await client.get(
|
||||||
config.mempool_endpoint + "/api/address/" + charge.onchainaddress
|
config.mempool_endpoint
|
||||||
|
+ "/api/address/"
|
||||||
|
+ 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:
|
||||||
|
Reference in New Issue
Block a user