Skip to content

Commit

Permalink
Add script to download setup data
Browse files Browse the repository at this point in the history
  • Loading branch information
jrchatruc committed Oct 18, 2023
1 parent 5e7bc64 commit c7e52db
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 8 deletions.
12 changes: 4 additions & 8 deletions prover/prover_fri/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,15 @@ Machine specs:
- Disk: 400GB of free disk

1. Install the correct nightly version using command: `rustup install nightly-2023-07-21`
2. Generate the cpu setup data (no need to regenerate if it's already there). This will consume around 300Gb of disk.
Use these commands:

```markdown
for i in {1..13}; do zk f cargo run --release --bin zksync_setup_data_generator_fri -- --numeric-circuit $i
--is_base_layer done
2. Generate the cpu setup data (no need to regenerate if it's already there). This will consume around 300Gb of disk. For this, run

for i in {1..15}; do zk f cargo run --release --bin zksync_setup_data_generator_fri -- --numeric-circuit $i done
```
./setup.sh
```

3. Initialize DB and run migrations: `zk init`

4. Override the following configuration in your `dev.env`:
4. Override the following configuration in your `dev.env` file, located under `etc/dev/dev.env` on the root of the repo:

```
ETH_SENDER_SENDER_PROOF_SENDING_MODE=OnlyRealProofs
Expand Down
15 changes: 15 additions & 0 deletions prover/setup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/usr/bin/env bash

for i in {1..13}
do
zk f cargo run --release --bin zksync_setup_data_generator_fri -- --numeric-circuit $i --is_base_layer
done

for i in {1..15}
do
zk f cargo run --release --bin zksync_setup_data_generator_fri -- --numeric-circuit $i
done

sed -i '' 's/^ETH_SENDER_SENDER_PROOF_SENDING_MODE.*$/ETH_SENDER_SENDER_PROOF_SENDING_MODE=OnlyRealProofs/' dev.env
sed -i '' 's/^ETH_SENDER_SENDER_PROOF_LOADING_MODE.*$/ETH_SENDER_SENDER_PROOF_LOADING_MODE=FriProofFromGcs/' dev.env
sed -i '' 's/^FRI_PROVER_SETUP_DATA_PATH.*$/FRI_PROVER_SETUP_DATA_PATH=vk_setup_data_generator_server_fri\/data\//' dev.env

0 comments on commit c7e52db

Please sign in to comment.