mirror of
https://github.com/scroll-tech/scroll.git
synced 2026-01-09 14:08:03 -05:00
A new e2e test tool to setup a local environment for testing coordinator and prover.
It contains data from some blocks in scroll sepolia, and helps to generate a series of chunks/batches/bundles from these blocks, filling the DB for the coordinator, so an e2e test (from chunk to bundle) can be run completely local
Steps:
- run
make allundertests/prover-e2e, it would launch a postgreSql db in local docker container, which is ready to be used by coordinator (include some chunks/batches/bundles waiting to be proven) - download circuit assets with
download-release.shscript inzkvm-prover - generate the verifier stuff corresponding to the downloaded assets by
make gen_verifier_stuffinzkvm-prover - setup
config.jsonandgenesis.jsonfor coordinator, copy the generated verifier stuff in step 3 to the directory which coordinator would load them - build and launch
coordinator_apiservice locally - setup the
config.jsonfor zkvm prover to connect with the locally launched coordinator api - in
zkvm-prover, launchmake test_e2e_run, which would specific prover run locally, connect to the local coordinator api service according to theconfig.json, and prove all tasks being injected to db in step 1.