diff --git a/yarn-project/acir-simulator/src/client/simulator.ts b/yarn-project/acir-simulator/src/client/simulator.ts index 5a7003c02a6..b07b156319f 100644 --- a/yarn-project/acir-simulator/src/client/simulator.ts +++ b/yarn-project/acir-simulator/src/client/simulator.ts @@ -22,7 +22,7 @@ import { UnconstrainedFunctionExecution } from './unconstrained_execution.js'; * The ACIR simulator. */ export class AcirSimulator { - private static solver: WasmBlackBoxFunctionSolver; // ACVM's backend + private static solver: Promise; // ACVM's backend private log: DebugLogger; constructor(private db: DBOracle) { @@ -42,8 +42,8 @@ export class AcirSimulator { * * @returns ACVM WasmBlackBoxFunctionSolver */ - public static async getSolver(): Promise { - if (!this.solver) this.solver = await createBlackBoxSolver(); + public static getSolver(): Promise { + if (!this.solver) this.solver = createBlackBoxSolver(); return this.solver; } diff --git a/yarn-project/sequencer-client/src/sequencer/sequencer.ts b/yarn-project/sequencer-client/src/sequencer/sequencer.ts index 8f4afb9cc23..319c58b1fa5 100644 --- a/yarn-project/sequencer-client/src/sequencer/sequencer.ts +++ b/yarn-project/sequencer-client/src/sequencer/sequencer.ts @@ -129,10 +129,11 @@ export class Sequencer { return; } - this.log(`Processing ${validTxs.length} txs...`); + const blockNumber = (await this.l2BlockSource.getBlockNumber()) + 1; + + this.log.info(`Building block ${blockNumber} with ${validTxs.length} transactions...`); this.state = SequencerState.CREATING_BLOCK; - const blockNumber = (await this.l2BlockSource.getBlockNumber()) + 1; const newGlobalVariables = await this.globalsBuilder.buildGlobalVariables(new Fr(blockNumber)); const prevGlobalVariables = (await this.l2BlockSource.getL2Block(-1))?.globalVariables ?? GlobalVariables.empty();