Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: remove prover-pool #6727

Merged
merged 1 commit into from
May 30, 2024
Merged

Conversation

alexghr
Copy link
Contributor

@alexghr alexghr commented May 29, 2024

This PR replaces ProverPool with adding configurable concurrency level to individual agents. This matches the expection that in production a prover would have multiple independent agents running on separate machines.

The aztec start --prover command was also changed to start a single agent (which can run multiple proving jobs in parallel)

Copy link
Contributor Author

alexghr commented May 29, 2024

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @alexghr and the rest of your teammates on Graphite Graphite

@alexghr alexghr force-pushed the 05-29-refactor_remove_prover-pool branch 5 times, most recently from e6ee13b to 5e98741 Compare May 29, 2024 13:37
Comment on lines +55 to +61
if (newConfig.realProofs !== this.config.realProofs) {
this.vks = await (newConfig.realProofs
? retrieveRealPrivateKernelVerificationKeys(newConfig)
: getMockVerificationKeys());

const circuitProver = await TxProver.buildCircuitProver(newConfig);
this.agent?.setCircuitProver(circuitProver);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Swap in a new circuit prover if we're swtiching to real proofs

@alexghr alexghr force-pushed the 05-29-refactor_remove_prover-pool branch 2 times, most recently from e96c860 to 13ec019 Compare May 30, 2024 07:27
@alexghr alexghr force-pushed the 05-29-refactor_remove_prover-pool branch from 13ec019 to b46b9f3 Compare May 30, 2024 07:48
@PhilWindle PhilWindle merged commit 5833f29 into master May 30, 2024
87 checks passed
@PhilWindle PhilWindle deleted the 05-29-refactor_remove_prover-pool branch May 30, 2024 08:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants