From 0c612f184b327e06819a93e1486830a93354df76 Mon Sep 17 00:00:00 2001 From: Santiago Palladino Date: Tue, 6 Aug 2024 18:30:41 -0300 Subject: [PATCH] Delete dummy prover client --- .../prover-client/src/mocks/test_context.ts | 32 +++---------------- 1 file changed, 4 insertions(+), 28 deletions(-) diff --git a/yarn-project/prover-client/src/mocks/test_context.ts b/yarn-project/prover-client/src/mocks/test_context.ts index f1243370ed7..f1a20ccba0d 100644 --- a/yarn-project/prover-client/src/mocks/test_context.ts +++ b/yarn-project/prover-client/src/mocks/test_context.ts @@ -1,9 +1,7 @@ import { type BBProverConfig } from '@aztec/bb-prover'; import { type BlockProver, - type BlockResult, type ProcessedTx, - type ProvingTicket, type PublicExecutionRequest, type ServerCircuitProver, type Tx, @@ -36,31 +34,7 @@ import { MemoryProvingQueue } from '../prover-agent/memory-proving-queue.js'; import { ProverAgent } from '../prover-agent/prover-agent.js'; import { getEnvironmentConfig, getSimulationProvider, makeGlobals } from './fixtures.js'; -// TODO(palla/prover-node): Delete this class? -class DummyProverClient implements BlockProver { - constructor(private orchestrator: ProvingOrchestrator) {} - startNewBlock(numTxs: number, globalVariables: GlobalVariables, l1ToL2Messages: Fr[]): Promise { - return this.orchestrator.startNewBlock(numTxs, globalVariables, l1ToL2Messages); - } - addNewTx(tx: ProcessedTx): Promise { - return this.orchestrator.addNewTx(tx); - } - cancelBlock(): void { - return this.orchestrator.cancelBlock(); - } - finaliseBlock(): Promise { - return this.orchestrator.finaliseBlock(); - } - setBlockCompleted(): Promise { - return this.orchestrator.setBlockCompleted(); - } - getProverId(): Fr { - return this.orchestrator.getProverId(); - } -} - export class TestContext { - public blockProver: BlockProver; constructor( public publicExecutor: MockProxy, public publicContractsDB: MockProxy, @@ -75,8 +49,10 @@ export class TestContext { public blockNumber: number, public directoriesToCleanup: string[], public logger: DebugLogger, - ) { - this.blockProver = new DummyProverClient(this.orchestrator); + ) {} + + public get blockProver() { + return this.orchestrator; } static async new(