Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: add arg run-mode to prover & cli (#1305)
* add forester, forester-test, rpc, full modes refactor: update RetryConfig defaults The RetryConfig struct now has updated default values for the max_retries and retry_delay fields. The max_retries value has been increased from 10 to 20, and the retry_delay value has been changed from 100 milliseconds to 1 second. This change ensures that the RetryConfig provides more robust and reliable retry behavior. chore: update LoadKeys function signature The LoadKeys function in the proving_keys_utils.go file now accepts an additional parameter called circuits. This parameter is a list of circuit names that will be used in the GetKeys function. This change allows for more flexibility in loading keys based on specific circuits. feat: update TestIndexer initialization The TestIndexer initialization in the test_compressed_pda.rs file has been updated to include a ProverConfig parameter. This parameter allows for specifying the run_mode and circuits for the TestIndexer. This change enables more fine-grained control over the TestIndexer behavior. feat: update TestIndexer initialization The TestIndexer initialization in the test.rs file has been updated to include a ProverConfig parameter. This parameter allows for specifying the run_mode and circuits for the TestIndexer. This change enables more fine-grained control over the TestIndexer behavior. feat: update TestIndexer initialization The TestIndexer initialization in the test_program_owned_trees.rs file has been updated to include a ProverConfig parameter. This parameter allows for specifying the run_mode and circuits for the TestIndexer. This change enables more fine-grained control over the TestIndexer behavior. chore: update initTestEnv function signature The initTestEnv function in the initTestEnv.ts file now accepts two additional parameters: proverRunMode and circuits. The proverRunMode parameter allows for specifying the run mode of the prover, and the circuits parameter is a list of circuit names. These changes provide more flexibility in initializing the test environment. chore: update spawn_prover function signature The spawn_prover function in the gnark.rs file now accepts a ProverConfig parameter instead of the ProverMode parameter. The ProverConfig allows for specifying the run_mode and circuits for the prover. This change provides more flexibility in spawning the prover. chore: update spawn_validator function signature The spawn_validator function in the test_utils.rs file now accepts a ProverConfig parameter instead of the LightValidatorConfig parameter. The ProverConfig allows for specifying the run_mode and circuits for the validator. This change provides more flexibility in spawning the validator. chore: update killProcess function behavior The killProcess function in the process.ts file has been updated to handle killing processes based on their name or command. It now uses the process name or command to identify the target processes to kill. This change improves the accuracy of process termination. chore: update waitForServers function behavior The waitForServers function in the process.ts file has been updated to increase the timeout value to 60 seconds and remove the simultaneous option. These changes ensure that the function waits for the servers to start up properly and improves the reliability of the server startup process. chore: update init_program_test_env function signature The init_program_test_env function in the e2e_test_env.rs file now accepts a ProverConfig parameter instead of the ProverMode parameter. The ProverConfig allows for specifying the run_mode and circuits for the TestIndexer. This change provides more flexibility in initializing the program test environment. chore: update KeypairActionConfig behavior The KeypairActionConfig struct in the e2e_test_env.rs file no longer has a prover_mode method. Instead, the inclusion and non_inclusion methods are used to determine the run mode of the prover. This change simplifies the logic for determining the prover run mode. chore: update start-prover command behavior The start-prover command in the index.ts file now accepts the --circuit option to specify individual circuits to enable. This change allows for more granular control over which circuits are enabled in the prover. import ProverConfig in test.rs refactor: update test functions for batch append and update Refactor the test functions for batch append and update to use a larger tree depth of 26 instead of 10. refactor: token-escrow: update import statements for ProverConfig and ProverMode refactor: update ProverConfig defaults in test.rs refactor: update ProverConfig defaults in test.rs refactor: Remove unused prover.sh script refactor: Update circuit builder refactor: Update lightweight and full files in download_keys.sh wip wip format import ProverConfig build CLI in Rust workflow wip wip refactor: fix formatting in test_program_owned_trees.rs fix refactor: update prover configuration in test programs * Refactor prover spawning logic and dependencies * Add 'devenv' feature to light-prover-client * Add step to build CLI in GitHub workflow * Refactor circuit_utils.go and proving_keys_utils.go
- Loading branch information