Skip to content

Commit

Permalink
Move setup-n.txt from src/config to setup, and copy it in dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
fractasy committed Jul 14, 2024
1 parent 0b0cff9 commit 7a55c46
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ COPY --from=build /usr/src/app/build/zkProver /usr/local/bin

COPY ./testvectors ./testvectors
COPY ./config ./config
COPY ./setup ./setup
COPY ./src/main_sm/fork_1/scripts/rom.json ./src/main_sm/fork_1/scripts/rom.json
COPY ./src/main_sm/fork_2/scripts/rom.json ./src/main_sm/fork_2/scripts/rom.json
COPY ./src/main_sm/fork_3/scripts/rom.json ./src/main_sm/fork_3/scripts/rom.json
Expand Down
1 change: 1 addition & 0 deletions Dockerfile-GHA
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ FROM ubuntu:22.04 as executor
WORKDIR /app
COPY ./testvectors ./testvectors
COPY ./config ./config
COPY ./setup ./setup
COPY ./src/main_sm/fork_1/scripts/rom.json ./src/main_sm/fork_1/scripts/rom.json
COPY ./src/main_sm/fork_2/scripts/rom.json ./src/main_sm/fork_2/scripts/rom.json
COPY ./src/main_sm/fork_3/scripts/rom.json ./src/main_sm/fork_3/scripts/rom.json
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/utils/utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -786,7 +786,7 @@ void checkSetupHash(std::string datFileName) {
string hashFormatted = hash.substr(2);
if(hash.size() % 2 != 0) hashFormatted = "0" + hashFormatted;

std::string setupFile = "src/config/setup-" + to_string(PROVER_FORK_ID) + ".txt";
std::string setupFile = "setup/setup-" + to_string(PROVER_FORK_ID) + ".txt";
std::ifstream file(setupFile);
if (!file.is_open()) {
std::cerr << "Error opening file: " << setupFile << std::endl;
Expand Down

0 comments on commit 7a55c46

Please sign in to comment.