diff --git a/simulations/mixnet/build_setup.sh b/simulations/mixnet/build_setup.sh index 8265d88c1..d36475da7 100755 --- a/simulations/mixnet/build_setup.sh +++ b/simulations/mixnet/build_setup.sh @@ -3,6 +3,10 @@ cd "$(dirname "$0")" MIXNET_DIR=$(pwd) cd ../.. ROOT_DIR=$(pwd) +source "$ROOT_DIR/env.sh" + +# Prefer explicitly provided RLN library path, otherwise use local migrated build. +LIBRLN_PATH=${LIBRLN_PATH:-"/Users/prem/Code/mix-rln-spam-protection-plugin/librln.a"} # Clean up old files first rm -f "$MIXNET_DIR/rln_tree.db" "$MIXNET_DIR"/rln_keystore_*.json @@ -10,7 +14,7 @@ rm -f "$MIXNET_DIR/rln_tree.db" "$MIXNET_DIR"/rln_keystore_*.json echo "Building and running credentials setup..." # Compile to temp location, then run from mixnet directory nim c -d:release --mm:refc \ - --passL:"-L$ROOT_DIR/vendor/zerokit/target/release -lrln" \ + --passL:"$LIBRLN_PATH" --passL:-lm \ -o:/tmp/setup_credentials_$$ \ "$MIXNET_DIR/setup_credentials.nim" 2>&1 | tail -30 diff --git a/vendor/mix-rln-spam-protection-plugin b/vendor/mix-rln-spam-protection-plugin index b3e3f7293..32f2af4c9 160000 --- a/vendor/mix-rln-spam-protection-plugin +++ b/vendor/mix-rln-spam-protection-plugin @@ -1 +1 @@ -Subproject commit b3e3f72932d53fe0959e182fc081fe14c0c2c2f0 +Subproject commit 32f2af4c9b8b7d8d455a26843e74a441f7cb94cf