Skip to content

Commit b5bd205

Browse files
committed
fix: use challenge name (not UUID) for CHALLENGE_ID env var
Validators identify challenges by name, so broadcasts must use the name to match correctly. The UUID is internal to orchestrator only.
1 parent a5d7505 commit b5bd205

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

crates/challenge-orchestrator/src/docker.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,8 @@ impl DockerClient {
515515
// Build environment variables
516516
// Note: Setting env overrides image ENV, so we include common vars
517517
let mut env: Vec<String> = Vec::new();
518-
env.push(format!("CHALLENGE_ID={}", config.challenge_id));
518+
// Use challenge NAME (not UUID) so validators can match events by name
519+
env.push(format!("CHALLENGE_ID={}", config.name));
519520
env.push(format!("MECHANISM_ID={}", config.mechanism_id));
520521
// Pass through important environment variables from image defaults
521522
env.push("TASKS_DIR=/app/data/tasks".to_string());

0 commit comments

Comments
 (0)