Skip to content

Commit cbc47b4

Browse files
committed
fix(gateway): add Python validator coordination API shims
Legacy agents call /v1/validators/register and related routes against chain.joinbase.ai; the Rust gateway never exposed them, causing 404s. Add in-memory compat routes so old validators can register, heartbeat, and fetch registry/weights without challenge-assignment work.
1 parent 21a857b commit cbc47b4

5 files changed

Lines changed: 624 additions & 0 deletions

File tree

Cargo.lock

Lines changed: 20 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/gateway-compat/Cargo.toml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
[package]
2+
name = "gateway-compat"
3+
description = "Legacy Python validator coordination shims for the Rust gateway"
4+
version.workspace = true
5+
edition.workspace = true
6+
license.workspace = true
7+
repository.workspace = true
8+
rust-version.workspace = true
9+
publish = false
10+
11+
[dependencies]
12+
axum = { version = "0.8", default-features = false, features = ["http1", "tokio", "json"] }
13+
hex = "0.4"
14+
keystore = { path = "../keystore" }
15+
parking_lot = "0.12"
16+
schnorrkel = { version = "0.11.5", default-features = false, features = ["std"] }
17+
serde = { version = "1", features = ["derive"] }
18+
serde_json = "1"
19+
sha2 = "0.10"
20+
trustroot = { path = "../trustroot" }
21+
22+
[dev-dependencies]
23+
tokio = { version = "1", features = ["macros", "rt-multi-thread"] }
24+
tower = { version = "0.5", features = ["util"] }
25+
http-body-util = "0.1"
26+
schnorrkel = { version = "0.11.5", default-features = false, features = ["std", "getrandom"] }
27+
rand_core = { version = "0.6", features = ["getrandom"] }
28+
29+
[lints]
30+
workspace = true

0 commit comments

Comments
 (0)