Skip to content

Commit c3e1a74

Browse files
committed
feat: update to v0 API endpoints
Changes: - Update /health to /v0/health - Update /lean/states/finalized to /lean/v0/states/finalized - Update /lean/states/justified to /lean/v0/states/justified These endpoints will work once remote lean node images are updated.
1 parent b7fb8d5 commit c3e1a74

5 files changed

Lines changed: 32 additions & 4 deletions

File tree

convert-validator-config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def convert_validator_config(yaml_path: str, output_path: str, base_port: int =
5353
upstream = {
5454
"name": name,
5555
"url": f"http://{ip}:{http_port}",
56-
"path": "/health" # Health check endpoint
56+
"path": "/v0/health" # Health check endpoint
5757
}
5858

5959
upstreams.append(upstream)

src/lean_api.zig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ pub fn fetchSlots(
1818
allocator,
1919
client,
2020
base_url,
21-
"/lean/states/finalized",
21+
"/lean/v0/states/finalized",
2222
);
2323

24-
// For now, use finalized slot as justified slot since /lean/states/justified returns 404
24+
// For now, use finalized slot as justified slot since /lean/v0/states/justified returns 404
2525
// TODO: Find the correct endpoint for justified slot
2626
const justified_slot = finalized_slot;
2727

upstreams-zeam-lantern.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"upstreams": [
3+
{
4+
"name": "zeam_0",
5+
"url": "http://46.224.123.223:9095",
6+
"path": "/v0/health"
7+
},
8+
{
9+
"name": "lantern_0",
10+
"url": "http://46.224.135.177:9095",
11+
"path": "/v0/health"
12+
}
13+
]
14+
}

upstreams-zeam-only.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"upstreams":[{"name":"zeam_0","url":"http://46.224.123.223:9095","path":"/health"}]}
1+
{"upstreams":[{"name":"zeam_0","url":"http://46.224.123.223:9095","path":"/v0/health"}]}

upstreams-zeam-ream.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"upstreams": [
3+
{
4+
"name": "zeam_0",
5+
"url": "http://46.224.123.223:9095",
6+
"path": "/v0/health"
7+
},
8+
{
9+
"name": "ream_0",
10+
"url": "http://77.42.27.219:9095",
11+
"path": "/v0/health"
12+
}
13+
]
14+
}

0 commit comments

Comments
 (0)