Skip to content

Commit

Permalink
get end version from api
Browse files Browse the repository at this point in the history
  • Loading branch information
msmouse committed Mar 4, 2025
1 parent 8cb7a89 commit e381349
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion testsuite/replay-verify/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,14 @@ def read_skip_ranges(network: str) -> tuple[int, int, list[tuple[int, int]]]:
(int(range["start_version"]), int(range["end_version"]))
for range in data["skip_ranges"]
]
return (data["start"], data["end"], skip_ranges)

end = int(json.loads(
urllib.request.urlopen(f"https://fullnode.{network}.aptoslabs.com/v1")
.read()
.decode()
)["ledger_version"])

return (data["start"], end, skip_ranges)


def parse_args() -> argparse.Namespace:
Expand Down

0 comments on commit e381349

Please sign in to comment.