Skip to content

Commit 48d6a57

Browse files
committed
test(fast-inbox): follow the per-block message argument in the multi-block checkpoint fixture (A-1385)
The per-block message driver still passed the checkpoint's slices through `addBlock`'s options bag and asked `startNewCheckpoint` for per-block insertion, which is now the only behaviour.
1 parent 6cd8458 commit 48d6a57

1 file changed

Lines changed: 2 additions & 9 deletions

File tree

yarn-project/prover-client/src/mocks/test_context.ts

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -373,29 +373,22 @@ export class TestContext {
373373
const cleanFork = await this.worldState.fork();
374374
const previousCheckpointOutHashes = this.checkpointOutHashes;
375375
const startInboxRollingHash = this.currentInboxRollingHash;
376-
// Empty checkpoint-level list + `insertMessagesPerBlock` so the builder inserts each block's slice via
377-
// `addBlock` (and accumulates them into the checkpoint's rolling hash) rather than up front.
378-
const builder = await LightweightCheckpointBuilder.startNewCheckpoint(
376+
const builder = LightweightCheckpointBuilder.startNewCheckpoint(
379377
checkpointNumber,
380378
{ ...constants, timestamp },
381-
[],
382379
previousCheckpointOutHashes,
383380
startInboxRollingHash,
384381
cleanFork,
385-
undefined,
386-
0n,
387-
true,
388382
);
389383

390384
const blocks = [];
391385
for (let i = 0; i < numBlocks; i++) {
392386
const txs = blockTxs[i];
393387
const state = blockEndStates[i];
394388

395-
const { block } = await builder.addBlock(blockGlobalVariables[i], txs, {
389+
const { block } = await builder.addBlock(blockGlobalVariables[i], txs, l1ToL2MessagesPerBlock[i], {
396390
expectedEndState: state,
397391
insertTxsEffects: true,
398-
l1ToL2Messages: l1ToL2MessagesPerBlock[i],
399392
});
400393

401394
const header = block.header;

0 commit comments

Comments
 (0)