From 08ee260b13e603101654337762dce3380ddd1f20 Mon Sep 17 00:00:00 2001 From: andrussal Date: Sun, 7 Dec 2025 05:19:17 +0100 Subject: [PATCH] Compose: align default KZG params path to mounted bundle --- testing-framework/assets/stack/scripts/run_nomos_executor.sh | 2 +- testing-framework/assets/stack/scripts/run_nomos_node.sh | 2 +- testing-framework/runners/compose/src/compose.rs | 3 +++ 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/testing-framework/assets/stack/scripts/run_nomos_executor.sh b/testing-framework/assets/stack/scripts/run_nomos_executor.sh index a4c89ca..cbf62d8 100755 --- a/testing-framework/assets/stack/scripts/run_nomos_executor.sh +++ b/testing-framework/assets/stack/scripts/run_nomos_executor.sh @@ -7,7 +7,7 @@ export CFG_FILE_PATH="/config.yaml" \ CFG_HOST_IP=$(hostname -i) \ CFG_HOST_KIND="${CFG_HOST_KIND:-executor}" \ CFG_HOST_IDENTIFIER="${CFG_HOST_IDENTIFIER:-executor-$(hostname -i)}" \ - NOMOS_KZGRS_PARAMS_PATH="${NOMOS_KZGRS_PARAMS_PATH:-/opt/circuits/pol/proving_key.zkey}" \ + NOMOS_KZGRS_PARAMS_PATH="${NOMOS_KZGRS_PARAMS_PATH:-/opt/circuits/kzgrs_test_params/proving_key.zkey}" \ LOG_LEVEL="INFO" \ POL_PROOF_DEV_MODE="${POL_PROOF_DEV_MODE:-true}" diff --git a/testing-framework/assets/stack/scripts/run_nomos_node.sh b/testing-framework/assets/stack/scripts/run_nomos_node.sh index 9579ac7..bf4954f 100755 --- a/testing-framework/assets/stack/scripts/run_nomos_node.sh +++ b/testing-framework/assets/stack/scripts/run_nomos_node.sh @@ -7,7 +7,7 @@ export CFG_FILE_PATH="/config.yaml" \ CFG_HOST_IP=$(hostname -i) \ CFG_HOST_KIND="${CFG_HOST_KIND:-validator}" \ CFG_HOST_IDENTIFIER="${CFG_HOST_IDENTIFIER:-validator-$(hostname -i)}" \ - NOMOS_KZGRS_PARAMS_PATH="${NOMOS_KZGRS_PARAMS_PATH:-/opt/circuits/pol/proving_key.zkey}" \ + NOMOS_KZGRS_PARAMS_PATH="${NOMOS_KZGRS_PARAMS_PATH:-/opt/circuits/kzgrs_test_params/proving_key.zkey}" \ LOG_LEVEL="INFO" \ POL_PROOF_DEV_MODE="${POL_PROOF_DEV_MODE:-true}" diff --git a/testing-framework/runners/compose/src/compose.rs b/testing-framework/runners/compose/src/compose.rs index 266e6b9..28a7f45 100644 --- a/testing-framework/runners/compose/src/compose.rs +++ b/testing-framework/runners/compose/src/compose.rs @@ -524,10 +524,13 @@ fn base_environment(cfgsync_port: u16) -> Vec { let pol_mode = std::env::var("POL_PROOF_DEV_MODE").unwrap_or_else(|_| "true".to_string()); let rust_log = std::env::var("RUST_LOG").unwrap_or_else(|_| "info".to_string()); let nomos_log_level = std::env::var("NOMOS_LOG_LEVEL").unwrap_or_else(|_| "info".to_string()); + let kzg_path = std::env::var("NOMOS_KZGRS_PARAMS_PATH") + .unwrap_or_else(|_| String::from("/kzgrs_test_params/proving_key.zkey")); vec![ EnvEntry::new("POL_PROOF_DEV_MODE", pol_mode), EnvEntry::new("RUST_LOG", rust_log), EnvEntry::new("NOMOS_LOG_LEVEL", nomos_log_level), + EnvEntry::new("NOMOS_KZGRS_PARAMS_PATH", kzg_path), EnvEntry::new( "CFG_SERVER_ADDR", format!("http://host.docker.internal:{cfgsync_port}"),