mirror of
https://git.wownero.com/wowlet/wowlet-backend.git
synced 2024-08-15 01:03:13 +00:00
fapi: provide target_height
This commit is contained in:
parent
5873861862
commit
39f5662d09
1 changed files with 3 additions and 1 deletions
|
@ -352,11 +352,12 @@ class FeatherApi:
|
|||
async with aiohttp.ClientSession(**d) as session:
|
||||
async with session.get(f"http://{node}/get_info") as response:
|
||||
blob = await response.json()
|
||||
for expect in ["nettype", "height"]:
|
||||
for expect in ["nettype", "height", "target_height"]:
|
||||
assert expect in blob
|
||||
_node = {
|
||||
"address": node,
|
||||
"height": int(blob["height"]),
|
||||
"target_height": int(blob["target_height"]),
|
||||
"online": True,
|
||||
"nettype": blob["nettype"],
|
||||
"type": k
|
||||
|
@ -366,6 +367,7 @@ class FeatherApi:
|
|||
_node = {
|
||||
"address": node,
|
||||
"height": 0,
|
||||
"target_height": 0,
|
||||
"online": False,
|
||||
"nettype": network_type,
|
||||
"type": k
|
||||
|
|
Loading…
Reference in a new issue