Endpoints working

This commit is contained in:
ben
2022-12-08 13:45:38 +00:00
parent 8e6eb63c9e
commit c239c4f552
8 changed files with 147 additions and 124 deletions
+1 -1
View File
@@ -80,7 +80,7 @@ async def get_mining_dashboard(gerty):
if isinstance(gerty.mempool_endpoint, str):
async with httpx.AsyncClient() as client:
# current hashrate
r = await get_mempool_info("get_hashrate_1w", gerty)
r = await get_mempool_info("hashrate_1w", gerty)
data = r
hashrateNow = data["currentHashrate"]
hashrateOneWeekAgo = data["hashrates"][6]["avgHashrate"]