Skip to content

Commit fb0ed79

Browse files
committed
Merge branch 'feat/aggregation-mode-risc0' into feat/aggregation-mode-risc0-contracts
2 parents 09fbad3 + 6c544d0 commit fb0ed79

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

Makefile

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -151,11 +151,18 @@ anvil_start_with_more_prefunded_accounts:
151151
anvil --load-state contracts/scripts/anvil/state/alignedlayer-deployed-anvil-state.json --block-time 7 -a 2000
152152

153153
__AGGREGATION_MODE__: ## ____
154-
start_proof_aggregator_local: ## Start the proof aggregator locally using Mock Verifier Contract
155-
cargo run --manifest-path ./aggregation_mode/Cargo.toml --release -- config-files/config-proof-aggregator-mock.yaml
156154

157-
start_proof_aggregator_local_with_proving: ## Start the proof aggregator locally using SP1 Verifier Contract
158-
cargo run --manifest-path ./aggregation_mode/Cargo.toml --release --features prove -- config-files/config-proof-aggregator.yaml
155+
is_aggregator_set:
156+
@if [ -z "$(AGGREGATOR)" ]; then \
157+
echo "Error: AGGREGATOR is not set. Please provide arg AGGREGATOR='sp1' or 'risc0'."; \
158+
exit 1; \
159+
fi
160+
161+
start_proof_aggregator_local: is_aggregator_set ## Start the proof aggregator locally using Mock Verifier Contract
162+
RISC0_DEV_MODE=1 cargo run --manifest-path ./aggregation_mode/Cargo.toml --release --features $(AGGREGATOR) -- config-files/config-proof-aggregator-mock.yaml
163+
164+
start_proof_aggregator_local_with_proving: is_aggregator_set ## Start the proof aggregator locally using SP1 Verifier Contract
165+
cargo run --manifest-path ./aggregation_mode/Cargo.toml --release --features prove,$(AGGREGATOR) -- config-files/config-proof-aggregator.yaml
159166

160167
_AGGREGATOR_:
161168

0 commit comments

Comments
 (0)