From 11c48fae149a9e308592a3fe1ba0987d4cafc1bc Mon Sep 17 00:00:00 2001 From: Alexey Date: Wed, 17 Feb 2021 22:15:45 +0300 Subject: [PATCH] docker update --- Dockerfile | 1 - scripts/buildWitness.sh | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 80a9888..c244795 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,7 +16,6 @@ COPY circuits circuits COPY scripts scripts # ENV NODE_OPTIONS='--trace-gc --trace-gc-ignore-scavenger --max-old-space-size=2048000 --initial-old-space-size=2048000 --no-global-gc-scheduling --no-incremental-marking --max-semi-space-size=1024 --initial-heap-size=2048000' ENV NODE_OPTIONS='--max-old-space-size=2048000' -RUN mkdir -p build/circuits RUN yarn circuit:batchTreeUpdateLarge RUN yarn circuit:batchTreeUpdateWitness COPY . . diff --git a/scripts/buildWitness.sh b/scripts/buildWitness.sh index 801f162..69387cf 100755 --- a/scripts/buildWitness.sh +++ b/scripts/buildWitness.sh @@ -1,8 +1,8 @@ #!/bin/bash -e # required dependencies: libgmp-dev nlohmann-json3-dev nasm g++ -cd build/circuits +cd artifacts/circuits node ../../node_modules/ffiasm/src/buildzqfield.js -q 21888242871839275222246405745257275088548364400416034343698204186575808495617 -n Fr nasm -felf64 fr.asm cp ../../node_modules/circom_runtime/c/*.cpp ./ cp ../../node_modules/circom_runtime/c/*.hpp ./ -g++ -pthread main.cpp calcwit.cpp utils.cpp fr.cpp fr.o ${1}.cpp -o ${1} -lgmp -std=c++11 -O3 -fopenmp -DSANITY_CHECK \ No newline at end of file +g++ -pthread main.cpp calcwit.cpp utils.cpp fr.cpp fr.o ${1}.cpp -o ${1} -lgmp -std=c++11 -O3 -fopenmp -DSANITY_CHECK