Skip to content

Commit afa920e

Browse files
committed
handle more sets of circuit-blobs
1 parent 2e8261b commit afa920e

File tree

3 files changed

+15
-5
lines changed

3 files changed

+15
-5
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ tests.tsv
1717
website/static/api-docs/
1818

1919
ledger/3.0.0mainnet
20+
ledger/3.0.1devnet
2021
ledger/berkeley-devnet
22+
ledger/berkeley_rc1
2123
mina-workdir
2224
.idea/

Makefile

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@ NETWORK ?= devnet
3737
VERBOSITY ?= info
3838
GIT_COMMIT := $(shell git rev-parse --short=8 HEAD)
3939

40+
# Circuit Blobs
41+
CIRCUITS_REPO ?= https://github.com/o1-labs/circuit-blobs.git
42+
CIRCUITS_REV ?= dw/add-berkeley-687bf44e97328e1cc0e85291663009410f64bd99
43+
CIRCUITS_NETWORKS ?= 3.0.0mainnet 3.0.1devnet berkeley_rc1 berkeley-devnet
44+
4045
# Documentation server port
4146
DOCS_PORT ?= 3000
4247

@@ -214,9 +219,12 @@ clean: ## Clean build artifacts
214219
.PHONY: download-circuits
215220
download-circuits: ## Download the circuits used by Mina from GitHub
216221
@if [ ! -d "circuit-blobs" ]; then \
217-
git clone --depth 1 https://github.com/o1-labs/circuit-blobs.git -b dw/add-berkeley-687bf44e97328e1cc0e85291663009410f64bd99; \
218-
ln -s "$$PWD"/circuit-blobs/3.0.0mainnet ledger/; \
219-
ln -s "$$PWD"/circuit-blobs/berkeley-devnet ledger/; \
222+
git clone --depth 1 $(CIRCUITS_REPO) -b $(CIRCUITS_REV); \
223+
for network in $(CIRCUITS_NETWORKS); do \
224+
echo "Including circuits for $$network"; \
225+
rm -f "$$PWD"/ledger/"$$network"; \
226+
ln -s "$$PWD"/circuit-blobs/"$$network" ledger/"$$network"; \
227+
done; \
220228
else \
221229
echo "circuit-blobs already exists, skipping download."; \
222230
fi

frontend/scripts/download-webnode.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
#!/bin/bash
22

33
# Set the base URL for OpenMina
4-
MINA_BASE_URL="https://github.com/openmina"
4+
MINA_BASE_URL="https://github.com/o1-labs"
55

66
# Function to download circuit files
77
download_circuit_files() {
88
CIRCUITS_BASE_URL="$MINA_BASE_URL/circuit-blobs/releases/download"
9-
CIRCUITS_VERSION="3.0.1devnet"
9+
CIRCUITS_VERSION="berkeley-devnet"
1010

1111
DEVNET_CIRCUIT_FILES=(
1212
"block_verifier_index.postcard"

0 commit comments

Comments
 (0)