mirror of
https://github.com/scroll-tech/scroll.git
synced 2026-04-23 03:00:50 -04:00
ProverE2E: A new e2e test tool to setup a local environment for testing coordinator and prover.
It contains data from some blocks in a specified testnet, 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
Prepare
link the staff dir as "conf" from one of the dir with staff set, currently we have following staff sets:
- sepolia: with blocks from scroll sepolia
- cloak-xen: with blocks from xen sepolia, which is a cloak network
Test
- 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) - setup assets by run
make coordinator_setup - come into
coordinator/build/binfor following steps:
- rename
conf/config.template.jsonasconf/config.json - if the
l2.validium_modeis set to true inconfig.json, thesequencer.decryption_keymust be set - launch
coordinator_apiservice by executing the file
- come into
zkvm-proverfor following steps:
- copy
config.template.jsontoconfig.json, - set the
sdk_config.coordinator.base_urlfield inconfig.json, so zkvm prover would connect with the locally launched coordinator api, for common case the url ishttp://localhost:8390(the default listening port of coordinator api) - launch
make 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.