From a50ff6cf968f459ae09620d0e5b2e955ea56512f Mon Sep 17 00:00:00 2001 From: Lasse Herskind <16536249+LHerskind@users.noreply.github.com> Date: Fri, 13 Dec 2024 20:44:43 +0100 Subject: [PATCH] chore: set max txs in spam test (#10717) --- 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 942e558d83e..29635955b8b 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 = [];