Fix compose KZG default path

This commit is contained in:
andrussal 2025-12-07 08:17:16 +01:00
parent 83c13b771c
commit 234f0de80e
4 changed files with 6 additions and 5 deletions

View File

@ -375,8 +375,9 @@ jobs:
run: |
mkdir -p "$TMPDIR"
# Pre-flight: ensure KZG params exist where compose will mount them.
if [ ! -f testing-framework/assets/stack/kzgrs_test_params/proving_key.zkey ]; then
echo "KZG params missing at testing-framework/assets/stack/kzgrs_test_params/proving_key.zkey" >&2
KZG_FILE=testing-framework/assets/stack/kzgrs_test_params/pol/proving_key.zkey
if [ ! -f "$KZG_FILE" ]; then
echo "KZG params missing at $KZG_FILE" >&2
ls -l testing-framework/assets/stack/kzgrs_test_params || true
exit 1
fi

View File

@ -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/kzgrs_test_params/proving_key.zkey}" \
NOMOS_KZGRS_PARAMS_PATH="${NOMOS_KZGRS_PARAMS_PATH:-/opt/circuits/kzgrs_test_params/pol/proving_key.zkey}" \
LOG_LEVEL="INFO" \
POL_PROOF_DEV_MODE="${POL_PROOF_DEV_MODE:-true}"

View File

@ -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/kzgrs_test_params/proving_key.zkey}" \
NOMOS_KZGRS_PARAMS_PATH="${NOMOS_KZGRS_PARAMS_PATH:-/opt/circuits/kzgrs_test_params/pol/proving_key.zkey}" \
LOG_LEVEL="INFO" \
POL_PROOF_DEV_MODE="${POL_PROOF_DEV_MODE:-true}"

View File

@ -526,7 +526,7 @@ fn base_environment(cfgsync_port: u16) -> Vec<EnvEntry> {
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"));
.unwrap_or_else(|_| String::from("/kzgrs_test_params/pol/proving_key.zkey"));
vec![
EnvEntry::new("POL_PROOF_DEV_MODE", pol_mode),
EnvEntry::new("RUST_LOG", rust_log),