From ea1ef9dbe9e26a1d87850f2d0a75bdad02f8a575 Mon Sep 17 00:00:00 2001 From: LHerskind Date: Fri, 13 Dec 2024 17:44:51 +0000 Subject: [PATCH] chore: set max txs in spam test --- yarn-project/end-to-end/src/e2e_block_building.test.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/yarn-project/end-to-end/src/e2e_block_building.test.ts b/yarn-project/end-to-end/src/e2e_block_building.test.ts index 942e558d83e6..29635955b8be 100644 --- a/yarn-project/end-to-end/src/e2e_block_building.test.ts +++ b/yarn-project/end-to-end/src/e2e_block_building.test.ts @@ -394,8 +394,10 @@ describe('e2e_block_building', () => { .send() .deployed(); - logger.info('Updating min txs per block to 4'); - await aztecNode.setConfig({ minTxsPerBlock: 4 }); + // We set the maximum number of txs per block to 12 to ensure that the sequencer will start building a block before it receives all the txs + // and also to avoid it building + logger.info('Updating min txs per block to 4, and max txs per block to 12'); + await aztecNode.setConfig({ minTxsPerBlock: 4, maxTxsPerBlock: 12 }); logger.info('Spamming the network with public txs'); const txs = [];