Skip to content

Commit f602d75

Browse files
committed
Pass PLATFORM_URL to challenge containers for metagraph verification
1 parent c543017 commit f602d75

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

crates/challenge-orchestrator/src/docker.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,11 @@ impl DockerClient {
369369
if let Ok(owner_hotkey) = std::env::var("OWNER_HOTKEY") {
370370
env.push(format!("OWNER_HOTKEY={}", owner_hotkey));
371371
}
372+
// Pass Platform URL for metagraph verification
373+
// Use container hostname or env var since we're on the same Docker network
374+
let validator_host = std::env::var("VALIDATOR_CONTAINER_NAME")
375+
.unwrap_or_else(|_| "platform-validator".to_string());
376+
env.push(format!("PLATFORM_URL=http://{}:8080", validator_host));
372377

373378
// Create container config
374379
let container_config = Config {

0 commit comments

Comments
 (0)