Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion yarn-project/prover-client/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export function getProverEnvVars(): ProverConfig {
ACVM_BINARY_PATH = '',
BB_WORKING_DIRECTORY = tmpdir(),
BB_BINARY_PATH = '',
PROVER_AGENTS = '1',
PROVER_AGENTS = '10',

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I'm not sure we should set this default here. I'm always mindful that defaults should be a value that would make sense in a production setting. Can we not just set this for test runs?

PROVER_REAL_PROOFS = '',
} = process.env;

Expand Down
3 changes: 3 additions & 0 deletions yarn-project/prover-client/src/prover-pool/prover-pool.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { type ProvingJobSource } from '@aztec/circuit-types';
import { sleep } from '@aztec/foundation/sleep';
import { type SimulationProvider } from '@aztec/simulator';

import { mkdtemp } from 'fs/promises';
Expand Down Expand Up @@ -33,6 +34,8 @@ export class ProverPool {

for (const agent of this.agents) {
agent.start(source);
// stagger that start of each agent to avoid contention
await sleep(10);
}
}

Expand Down
4 changes: 2 additions & 2 deletions yarn-project/prover-client/src/tx-prover/tx-prover.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@ export class TxProver implements ProverClient {
throw new Error();
}

pool = ProverPool.nativePool(config, config.proverAgents, 10);
pool = ProverPool.nativePool(config, config.proverAgents, 50);
} else {
pool = ProverPool.testPool(simulationProvider, config.proverAgents, 10);
pool = ProverPool.testPool(simulationProvider, config.proverAgents, 50);
}

const prover = new TxProver(worldStateSynchronizer, getVerificationKeys(), pool);
Expand Down