Skip to content

Commit 34a0c55

Browse files
committed
Fix readme and makefile
1 parent db5a2b0 commit 34a0c55

File tree

2 files changed

+10
-16
lines changed

2 files changed

+10
-16
lines changed

Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,6 @@ start_proof_aggregator_local:
155155
cargo run --manifest-path ./aggregation-mode/Cargo.toml --release -- config-files/config-proof-aggregator.yaml
156156

157157
start_proof_aggregator_local_with_proving:
158-
cd aggregation-mode && \
159158
cargo run --manifest-path ./aggregation-mode/Cargo.toml --release --features prove -- config-files/config-proof-aggregator.yaml
160159

161160
_AGGREGATOR_:

aggregation-mode/readme.md

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,59 +4,54 @@
44
## How to run it locally
55

66
1. Deploy aligned contracts on anvil:
7+
78
```shell
89
make deploy_aligned_contracts
910
```
1011

1112
2. Start anvil:
13+
1214
```shell
1315
make anvil_start_with_block_time
1416
```
1517

1618
3. Start batcher
19+
1720
```shell
1821
make start_batcher_local
1922
```
2023

2124
4. Send SP1 proofs:
25+
2226
```shell
2327
make batcher_send_sp1_burst
2428
```
2529

2630
5. Start proof aggregator:
27-
```shell
31+
32+
```shell
2833
# This will not run a real prover but a mocked one see below to run a real prover
2934
make start_proof_aggregator_local
3035
```
31-
Note: it might take a while to compile as it uses more aggressive optimization levels.
32-
33-
You should it will fetch the new batch logs from the BatcherService and aggregate the compressed SP1 proofs from them.
3436

35-
### Run it with proving
37+
or
3638

37-
By default, on dev environments, the proving is mocked and the ProofAggregationService contract skips verification as proves are mocked. To run the service with proving you need to run change the commands on step `1.` and `4.`:
38-
39-
1. Start anvil with verification activated:
40-
```shell
41-
make anvil_start_with_verification
42-
```
43-
44-
4. Start proof aggregator with proving:
4539
```shell
4640
make start_proof_aggregator_local_with_proving
4741
```
4842

49-
Note: Unless you constraint yourself to a few proofs, this requires a powerful machine with GPU.
50-
43+
Note: Proving can be quite slow without GPUs
5144

5245
### Check the logs
5346

5447
1. Get latest aggregated proof:
48+
5549
```shell
5650
cast call 0xcbEAF3BDe82155F56486Fb5a1072cb8baAf547cc "currentAggregatedProofNumber()" --rpc-url http://localhost:8545
5751
```
5852

5953
2. Get aggregated proof info:
54+
6055
```shell
6156
cast call 0xcbEAF3BDe82155F56486Fb5a1072cb8baAf547cc "getAggregatedProof(uint64)(uint8,bytes32,bytes32)" <AGG_PROOF_NUMBER> --rpc-url http://localhost:8545
6257
```

0 commit comments

Comments
 (0)