Skip to content

Commit af2d003

Browse files
authored
sync_info key change (#58)
1 parent 6e41092 commit af2d003

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

application/service/provider_service.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -420,13 +420,13 @@ def _check_akash_node_readiness(self, ssh_client, task_id: str):
420420
network_status = response.json()
421421

422422
# Extract block heights
423-
node_height = int(node_status["SyncInfo"]["latest_block_height"])
423+
node_height = int(node_status["sync_info"]["latest_block_height"])
424424
network_height = int(
425425
network_status["result"]["sync_info"]["latest_block_height"]
426426
)
427427

428428
# Check if node is catching up
429-
if node_status["SyncInfo"]["catching_up"]:
429+
if node_status["sync_info"]["catching_up"]:
430430
message = f"Node is still catching up. Current height: {node_height}, Network height: {network_height}"
431431
log.debug(message)
432432
redis_client.xadd(f"task:{task_id}", {"stdout": message})

0 commit comments

Comments
 (0)